Search found 2 matches

by princessAlbert
Wed May 14, 2003 7:09 pm
Forum: PHP - Code
Topic: odbc_num_rows always returns -1
Replies: 3
Views: 710

hi.. more detail.. ok: i am using PHP 4.3.1 here's my query stuff: $dsn="ds"; $conn=odbc_connect($dsn, "u", "pw"); $query="select * from somewhere"; $result=odbc_Exec($conn, $query); now when i do this: while(odbc_fetch_row($result)) { echo "test<br>"...
by princessAlbert
Tue May 13, 2003 4:38 pm
Forum: PHP - Code
Topic: odbc_num_rows always returns -1
Replies: 3
Views: 710

odbc_num_rows always returns -1

hi..
in the documentation it says this will happen "with many drivers"; anyone know what these are and how to resolve this?
failing that, all i need is a way to retrieve a recordcount without having to loop over the query result..
ta[/i]