How can I tell if Recordset is empty using MSSQL and ODBC?

From: Date: Mon, 20 Oct 2003 16:08:45 +0000
Subject: How can I tell if Recordset is empty using MSSQL and ODBC?
Groups: php.db 
Request: Send a blank email to php-db+get-31192@lists.php.net to get a copy of this message
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

« previous php.db (#31192) next »