I want to know how many records were returned from a stored procedure.
$rs=odbc_exec($conn,"EXEC select_Contacts ".$sessionID);
I have tried: odbc_num_rows($rs) but it always returns -1 even though records are printed out.
Have you looked at the users' notes for odbc_num_rows() in the manual? Several of them address this problem.