PDA

View Full Version : mysql_fetch_object()


Jolten
06 Feb 2005, 19:16
Is there an equivalent $DB_site-> command for mysql_fetch_object?

Xenon
06 Feb 2005, 20:25
nope, not in the plain vb, but it's very easy to get:

open db_mysql.php

find
function fetch_array($query_id, $type = DBARRAY_ASSOC)
{
// retrieve row
return @mysql_fetch_array($query_id, $type);
}

and below just add:
function fetch_object($query_id)
{
// retrieve row
return @mysql_fetch_object($query_id);
}

Jolten
06 Feb 2005, 20:38
Thanks Stefan!

Xenon
06 Feb 2005, 20:41
;)
you're welcome