Entry
My query succeeds, so why doesn't $db->f(field) in PHPLIB return anything?
What is $db->next_record() used for in PHPLIB?
Jul 2nd, 1999 17:58
Nathan Wallace, Philip Olson, Youngbong Choe
In PHPLIB, next_record() gets the next row returned by the query. It
basically just calls *_fetch_array(). If you do not call next_record()
the fields are not available for accessing using f() and thus will
return nothing.
$q->next_record(); // use this method before $q->f()
$id = $q->f("id");
You can get more information in the manual at:
http://phplib.shonline.de