Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread ed
I think I've found my problem. The query does work if I place the exact same code directly into my script but I had previously been calling it as a function from an include file. It's working just great now. Thanks, Ed On Thu, 20 Mar 2003, Tom Rogers wrote: > Hi, > > Thursday, March 20, 200

Re: [PHP] Error on mysql_num_rows

2003-03-20 Thread Tom Rogers
Hi, Thursday, March 20, 2003, 10:44:33 PM, you wrote: ehhc> I've been trying to count records that match my query in MySQL using the ehhc> examples given in the on-line manual as well as the user comments and I'm ehhc> still getting the error: ehhc> Warning: mysql_num_rows(): supplied argument

[PHP] Error on mysql_num_rows

2003-03-20 Thread ed
I've been trying to count records that match my query in MySQL using the examples given in the on-line manual as well as the user comments and I'm still getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource. Here's the code. mysql_connect ($local_