» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2006, 01:48 PM
climax climax is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
climax is on a distinguished road
Default Ask PHP about mySQL existing connection?

Hi all,

I was wondering: is there a way to check with PHP whether a mySQL connection already exist between a script and the database. In that case it can be decided to connect or leave things as is...

Anyone with any idea? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-17-2006, 01:50 PM
seoexpert seoexpert is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
seoexpert is on a distinguished road
Default

If you use mysql_connect() it will use and already open connection if there is one and create a new one if not. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-17-2006, 01:53 PM
nevada nevada is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nevada is on a distinguished road
Default

I don't think so
What exactly is the situation ? Without knowing any details , it seems you should know whether or not you have a connection..

B more specific -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql can't run on php? Aldo MySQL Forums 1 01-06-2007 06:55 AM
mysql connection query! Ibraile MySQL Forums 1 08-15-2006 07:07 AM
trying to connect to mysql using php. branson MySQL Forums 1 08-13-2006 08:57 AM
Getting MySQL & PHP to communicate JCH MySQL Forums 0 05-29-2006 01:52 PM
set mysql connection limit for each account bryan Web Hosting Industry 1 03-29-2006 01:25 PM


All times are GMT. The time now is 04:47 AM.