I am trying to store the result of an mysql query output in an array..
for testing purpose i wrote the following code:
$conn = mysql_connect("localhost","name","pwd");
$sql = "select images from site";
$result = mysql_query($sql, $conn);
$number_of_rows = mysql_num_rows($result);
$count = mysql_fetch_array($result,MYSQL_ASSOC);
echo "<b>Number of contacts = $number_of_rows<br></b>";
but when i execute this query i get the following output:
Number of contacts = 6582
Array ( [images] => ----,3642 )
My question is why is the number of rows of indexed array more than
associative array ??...