Feb 9, 2003, 7:37 AM
Post #1 of 2
What is no results found.
I've been looking through all the dbi documentation, loads of FAQ sites about dbi etc... But none seem to mention what to do when no results are found to your query.
$query = qq(SELECT field1, field2, etc FROM database WHERE email = "$email");
When I run my query, if the record being looked for is found, everything works correctly. However, if the record isn't found, it doesn't display anything.
How can I return a no record found message?
I'm probably being really stupid and missing something obvious but any help is very much appreciated!