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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux