Advanced Database Querys

admin

Administrator
Staff member
Hello all I am trying to write some functions that can parse querys.

I.E.

function _array($query) {
$r = mysql_query($query);
return($a = mysql_fetch_array($r));
}

$q = "select * from users";
_array($q);
echo $a[name];

See the problem is that it will not return the $a... Does anyone have any ideas?? Thanks in advance Jared
 
Back
Top