Is this on a live site, or one with just this test script running? You
may be running into the max_connections of mysql. 

You're not connecting for _every_ query on the page, are you? You should
have just one connect at the beginning, do all of your queries, then
close at the end of the script.

---John Holmes...

> -----Original Message-----
> From: Noah Smith [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 06, 2002 2:55 PM
> Subject: [PHP-DB] Noob error question
> This may be a rather noob question, but:
> I make several requests against a mysql db roughly of the form:
> mysql_connect
> mysql_select_db
> mysql_query
> mysql_close
> This will work for several connections (and sometimes all connections
> over the course of the script)
> On occassion, the script will be unable to connect at all, and
> it is not able to connect randomly within the script:
> Thanks,
> Noah
> --
> PHP Database Mailing List (
> To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to