mysql_query
Moderator: General Moderators
mysql_query
say im looking through a table using mysql_query for a certain name but the name is not there does mysql_query return false?
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: mysql_query
You mean by executing a SELECT * FROM `table` WHERE `name` = 'something' query?
It will return a result set resource. If no records in the table are returned then mysql_num_rows() will return 0 when passed the result resource.
It will return a result set resource. If no records in the table are returned then mysql_num_rows() will return 0 when passed the result resource.