PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   mysql_query() (http://www.phpdig.net/forum/showthread.php?t=988)

robertDouglass 06-09-2004 06:05 AM

mysql_query()
 
Would it be useful if the db connection were stored in a variable and given as a parameter to all further database functions. For example:

$link = mysql_connect(......);
...
mysql_query($query, $link);

I run into problems including the phpdig scripts into my code because after the phpdig connection is opened, it gets used by my scripts when they call mysql_connect and vice versa. Am I interpreting this problem correctly?

-Robert Douglass

robertDouglass 06-09-2004 09:16 AM

Hmmm, already done that way
 
Please excuse me..... guilty script must be elsewhere. I see that a connection IS always passed in for all calls to mysql_query.


All times are GMT -8. The time now is 01:23 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.