difference between mysql_fetch_array() and mysql_fetch_row()

by Mohan 2012-09-17 15:49:59

mysql_fetch_array: returned a row from recordset as a
numeric and/or associative array.

mysql_fetch_row: returned a row from recordset as numeric array.

example:
$con=mysql_connect("localhost","root","root");
$sql = "select * from member where id=1";
$result=mysql_query($sql,$con);
print_r(mysql_fetch_array($result));
print_r(mysql_fetch_row($result));
779
like
0
dislike
0
mail
flag

You must LOGIN to add comments