Whats different between mysql_fetch_array
and mysql_fetch_assoc
?
I did a testing from my database.
$a echo out first row twice, I use count() to check and it print out double from my column $b echo out second row once.
Anyone can tell me why?
$connect=mysql_connect("localhost", "root", "");
$database=mysql_select_db("phplogin", $connect);
$SQL=mysql_query("SELECT * FROM users");
$a=implode(mysql_fetch_array($SQL));
$b=implode(mysql_fetch_assoc($SQL));
echo $a . "<HR/>";
echo $b;