How can i know which of both is better to use each time?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2006-06-20 at 12:34, Juanjo Pascual wrote:
How can i know which of both is better to use each time?
Use mysql_pconnect() if the connection overhead is large. This is
usually the case if the database is off on a remote server somewhere in
lala land. Remote servers within your LAN don't
If you're not sure you should probably stick with mysql_connect() -
otherwise you could end up bogging down mysql with way more
connections than you need if you're not careful.
On Jun 20, 2006, at 12:34 PM, Juanjo Pascual wrote:
How can i know which of both is better to use each time?
--
Mark Fellows previously described:
Hi, Hitting up the list for maybe a decent link(s) or pointers.
I need to figure out how to generate forms and form elements from
php code inside database tables. Hope this makes sense. It's not
a complete picture of what I need to do but the first step
PHP code to generate HTML markup. Or maybe just HTML code and then have the
php generate it from the makrup in the table ?
Mark
-Original Message-
From: [EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 6:49 PM -07:00
To: Mark Fellowes [EMAIL PROTECTED]
Cc: php-db@lists.php.net
Mark Fellows previously described:
Hi, Hitting up the list for maybe a decent link(s) or pointers.
I need to figure out how to generate forms and form elements from
php code inside database tables. Hope this makes sense. It's not
a complete picture of what I need to do but the first step
Micah, Thanks for the reply. I didn't see it earlier. Also my apologies for
the vagueness but right now things are somewhat vauge.
Let me try and explain better:
To start I'll paint a visual to explain it better. Ultimately I know this will
require additional tables (will get to that in
eval$code);
bastien
From: Mark Fellowes [EMAIL PROTECTED]
Reply-To: Mark Fellowes [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] Generating forms and form elements
Date: Tue, 20 Jun 2006 15:37:10 GMT
Hi, Hitting up the list for maybe a decent link(s) or pointers.
I need to
whoops
eval ($code);
Bastien
From: Bastien Koert [EMAIL PROTECTED]
To: [EMAIL PROTECTED], php-db@lists.php.net
Subject: RE: [PHP-DB] Generating forms and form elements
Date: Tue, 20 Jun 2006 16:44:22 -0400
eval$code);
bastien
From: Mark Fellowes [EMAIL PROTECTED]
Reply-To: Mark Fellowes
Bastien Koert wrote:
whoops
eval ($code);
Someone relatively famous[1] once said If eval is the answer then
you're asking the wrong question.
The eval function is dangerous. Extremely dangerous. From every point of
view there is. If there's another way to do what you're doing (and there
Not commenting on the appropriateness or security of the eval function.
Merely offering a possible path. It is up to the OP to decide if that
solution is the correct one.
B
From: Stut [EMAIL PROTECTED]
To: Bastien Koert [EMAIL PROTECTED]
CC: [EMAIL PROTECTED], php-db@lists.php.net
Bastien Koert wrote:
Not commenting on the appropriateness or security of the eval function.
Merely offering a possible path. It is up to the OP to decide if that
solution is the correct one.
I would accept that if you'd mentioned, or at least hinted at the issues
that need to be addressed
Hi Mark,
No problem!
There as always are many ways to accomplish this, and this sounds like
this will be largely an exercise in Javascript, but on the PHP/SQL side
you'll just need to design a table where rows correspond to information
that pertains to the whole form (username or ID, title,
Micah Stevens wrote:
Stut wrote:
Bastien Koert wrote:
Not commenting on the appropriateness or security of the eval
function. Merely offering a possible path. It is up to the OP to
decide if that solution is the correct one.
I would accept that if you'd mentioned, or at least hinted at the
Stut wrote:
Micah Stevens wrote:
Stut wrote:
Bastien Koert wrote:
Not commenting on the appropriateness or security of the eval
function. Merely offering a possible path. It is up to the OP to
decide if that solution is the correct one.
I would accept that if you'd mentioned, or at least
15 matches
Mail list logo