[thelist] syntax for mysql_query

Ken Snyder kendsnyder at gmail.com
Wed Apr 23 15:56:31 CDT 2008


Paul Bennett wrote:
> Hi Nan,
>
> I've never needed to pass the database connection handle to mysql_query() and have never had any problems as a result.
> (7 years PHP / MySQL experience, a good portion of it on high-load applications.)
>
> Others may differ in opinion?
>
> Paul
>   
Yes, mysql_query() should work fine without passing the handle unless 
for some reason you need to connect to two different database servers in 
one script.

- Ken Snyder



More information about the thelist mailing list