The printf statement in below code alway returns 0 even though the SQL when run directly on the MySQL return more then 1 row.
Pls. can anyone correct me if I’am doing anything wrong.
Thanks
function query($query)
{
$connection = mysql_connect($this->hostname, $this->db_login, $this->login_pw)
$get_data = mysql_db_query($this->db, $query, $connection);
printf (count($get_data));
return $get_data;
} //-> End query