global $res;
function fetch_rows() { global $res; return mysql_fetch_array($res); } function num_rows() { global $res; return mysql_num_rows($res); }