Re: How can I tell if Recordset is empty using MSSQL and ODBC?
| From: | pete M | Date: | Mon, 20 Oct 2003 16:46:29 +0000 |
| Subject: | Re: How can I tell if Recordset is empty using MSSQL and ODBC? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31197@lists.php.net to get a copy of this message | ||
if(count($data) > 0)
{
//out rows
}
pete
Karen Resplendo wrote:
In VBscript an empty recordset returns the "End of File" marker: If rs.EOF Then do nothing How can I do this in PHP using MS SQL Server and ODBC drivers? Here is a peace of my code: $data= odbc_do($connectionSDWIS,"SELECT LabUserName, LabName, WhichProcess FROM LabLogin WHERE LabUserName='$loginUserName' AND LabPassword='$loginPassword'"); --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search