OFCOURSE I have connected to the database.
If I try this without the connection it won't return numbers like 6==46.The queries will fail.
It will return a warning saing that the supplied argument for both mysql_fetch_row and mysql_num_rows in not valid.....
The function is mysql_fetch_row and not mysql_fetch_rows and the table in Mysql is user and not users.
Anyway the code you gave me is working but it shows nothing intresting because you call only ONE line (echo $query_data[1]😉
Try the code bellow and compare :
$db = mysql_pconnect("localhost", "USER", "PASS");
mysql_select_db("mysql",$db);
$sql="SELECT * FROM user";
$Query=mysql_query($sql);
$Rows=mysql_fetch_row($Query);
echo "FROM mysql_fetch_row:".count($Rows)."<br>FROM mysql_num_rows:".mysql_num_rows($Query);