Are you running your sites on the same server?
If yes use only one database for all of them.
Only? That aint too big, but now i'm confused what's ur hardware and
O.Sspecs? 300 to 500 would be a peice of cake to load. However, it
depends on
ur system.
I would rather use the array than hitting the db for the query. Because the
bottom line is that you will receive your data in an array no m
I agree with Bruno.
It depends on the project and project's situation.
Your request for clarification is about Prcedural Programming VS OOP
It realy depends on the situation and project scope.
And this is general not only in PHP but in all the programming
languages where prcedural programming is
You can assign tables to users with MySQL server !
It's all just the matter of how you design your application and the
level of confidenciality and security you want to have and how your
application is going to deal with it. Or in other words, your ACL
system structure and algorithms.
On Mon, 1
gt; Hi,
>
> I do have a flat file with all the translations for the interface and
> everything, but the problem is de dynamic content that must be
> multilingual...
>
> Regards,
> Bruno
>
>
>
> On Oct 18, 2004, at 5:29 AM, M Saleh EG wrote:
>
> > I
I'd always preffer to keep language stuff in files instead of DB.
A question or a problem u might face later is: How are you going to
store the text in the proper Charset in ur tables?
I'd do it this way.
-A field in DB to keep the current default language
-Every module in the app should have it
use the cache disable headers in HTML as well as PHP for the server
side headers.
pick any of the two methods.
1-HTML caching control:
2-PHP server headers for caching control:
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified:
I think this should be posted somewhere else. Maybe the php-general list ?!
This is no chemistry nor physics ! it's PHP-DB related issues right?
no arrays or strings probs. Plz keep the consistancy of our good lists
that are valuable for users who are us!
On Mon, 4 Oct 2004 12:51:52 -0700, Andr
As I understand, you're trying to check if the passed value is an
integer or not and then check it's value right?
Use the TYPECASTING technique.
example:
$var = (int) $var;
In this case you're converting ur $var to integer before processing it.
Typecasting is a very well known technique in any p
The whole thing doesnt have to do anything with the DB. Because what
matters is the client or the gateway character-set ( browser in your
case ) so if ur on windows u're probably posting data through
charset=windows-1256 so if ur using HTML then use this encoding or if
ur using XHTML u could put th
I'd say never be subjective n say "i'm not a fan of MS". Choose what
works the best for you.
Check ur budget... ur time ur method of programming and ur DB
knowlede. And ofcorse the size of your project.
For website(not web applications) i'd prefer mySQL
For webapps I'd preffer MSSQL.
For intranet
I'd recommand u to use a serialized variable saved in ur database.
As in the an array of keywords saved in an serialized variable once
the form is submited to save the query.
e.g.
$searchQuery = array();
$searchQuery["Keywords"]= $_POST["keyword"];
$searchQuery["JobCategory"]= $_POST["category"];
Stuart... u got the logic now. check ur syntax problems urself...
this is the only way ull learn it!
a hint... if ur database query is giving u errors... try echoing it
before sending it to mysql_query. ull find out the problem yourself
then ;)
another hint... mysql_query always returns a
I'd do it this way...
I'd add two column in the users table. 1- activated, 2- activation-hash
once the registeration form is ubmited..
a-the username and user info will be saved in the users table.
b-an encrypted hash would be made n saved in activation-hash column
and sent along with the regist
define the connection object as a global var in ur function
function ( params)
{
global $ur_connection_obj;
...
...
}
On Thu, 23 Sep 2004 14:56:10 -0300, Eduardo Sampaio <[EMAIL PROTECTED]> wrote:
> Its because the function cannot access your connection object...
> Try passing it to the functi
I know it's not the right place to post... but donno where else I could post!
Any idea about a good class that parses form input/outputs written in
PEAR level and standards?
--
M.Saleh.E.G
97150-4779817
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
d the desired goals of
> the system.
>
> Designing this is tricky and its a lot of work, but when complete, its
> portable (you can use the framework in many applications) and its secure.
> Basically you build an admin area, whereby some trusted users have admin
> privileges and as
0700 (PDT), Stuart Felenstein
<[EMAIL PROTECTED]> wrote:
> See my response interspersed:
>
> --- M Saleh EG <[EMAIL PROTECTED]> wrote:
>
> > You should always avoid passing Record IDs through
> > URL parameters.
> > Use form Hidden fields instead!
>
&
started coding before thinking of a logic
n drawing ur algorithm... while it's simple, lack of these plannings
makes ur work harder.
On Tue, 21 Sep 2004 05:29:30 +0400, M Saleh EG <[EMAIL PROTECTED]> wrote:
> You should always avoid passing Record IDs through URL parameters.
> Us
Do u prefer data structures in your scripts? as in Trees, Queues, Stacks
Do u like arrays? or like classes?
Once u get ur data from ur DB would u store it in a Tree for example
or would u just take more trips to the database instead?
Datascructures make DB so it cant be against it right?
Da
Is it better if u have ur javascript alone (for example a good JS
framework to make anykind of UI elements u need?) or would u preffer
having a good set of PHP classes that generates those UI elements for
u from PHP w/o even touching JS or even knowing it?
to be clear,
Would u write this
You should always avoid passing Record IDs through URL parameters.
Use form Hidden fields instead!
In your case, when ur selecting the users form data from the record
check if it's the same user if not then if he tries to change the ID
from the URI Parameter just block it. Or u better MD5 every lo
Or maybe with "Describe Table" ?
On Mon, 20 Sep 2004 10:51:30 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote:
> don't you get that with the DEFINE `table` query?
>
> --
>
> -->>
> Jasper Howard :: Database Administration
> ApexEleven W
hmm... u better check n hack phpmyadmin... u might get somethin out there...
On Mon, 20 Sep 2004 13:02:55 +0930, David Robley <[EMAIL PROTECTED]> wrote:
> On Sun, 19 Sep 2004 21:19, Ross Honniball wrote:
>
> > Hi all,
> >
> > Anyone know how to access the optional COMMENT you can add to columns
I have done all the quoting stuff, so \' instead of ' was no
> solution either, until I tried double quotes instead of single ones,
> just as M Saleh Eg suggested. So the following statement finally works:
>
> $query = "INSERT INTO node (uri,name) VALUES (\"$val\&q
Anyone for a list of php abstraction classes?
ADODB, PEAR::DB... any others? or better?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$val="127.0.0.1";
$query="INSERT INTO node set uri=\"$val\", name=\"bla\"";
Try this one... think is better n less confusing for u...
On Sun, 19 Sep 2004 19:13:48 +0200, Darryl <[EMAIL PROTECTED]> wrote:
>
> $val = "127.0.0.1";
> $query = "INSERT INTO node (uri,name) VALUES ('".$val."','bla')";
27 matches
Mail list logo