PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 06-09-2004, 06:05 AM   #1
robertDouglass
Green Mole
 
Join Date: Jun 2004
Posts: 3
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
__________________
-Rob
------
visit me at www.robshouse.net
robertDouglass is offline   Reply With Quote
Old 06-09-2004, 09:16 AM   #2
robertDouglass
Green Mole
 
Join Date: Jun 2004
Posts: 3
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.
__________________
-Rob
------
visit me at www.robshouse.net
robertDouglass is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:05 AM.


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