Determines if a query contains any rows
public HasRecords ( string $sql = "" ) : boolean | ||
$sql | string | [Optional] If specified, the query is first executed Otherwise, the last query is used for comparison |
return | boolean | TRUE if records exist, FALSE if not or query error |