NYCPHP Meetup

NYPHP.org

[nycphp-talk] warning - mysql resource

Chris Snyder csnyder at chxo.com
Wed Aug 27 14:38:10 EDT 2003


Peter Lehrer wrote:

> I am performing 2 mysql_query statements in one program and the second 
> doesn't return a
> "valid MySQL result resource."
>  
> Are you suppose to reconnect to the database with each mysql query?

No, you can definitely use the same db connection for as many queries as 
you like.

Take a look at the mysql_error() function, you could use it to see what 
is going wrong if you don't get a result from mysql_query().

  chris.




More information about the talk mailing list