PDA

View Full Version : mysql_fetch_object()


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

Xenon
02-06-2005, 07:25 PM
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
02-06-2005, 07:38 PM
Thanks Stefan!

Xenon
02-06-2005, 07:41 PM
;)
you're welcome