Posted on 2005-06-27 14:26:16-07 by alexperl
How to check if query returns no result?
Hi, if no result found in search, how can i print message saying that 'no result found' here is example:
$query = "..."; $statementHandle = $databaseHandle->prepare( $query ); $statementHandle->execute(); while ( @row = $statementHandle->fetchrow_array() ) { print "$row[0]"; }
Direct Responses: 665 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.