what is the difference between mysql_fetch_array() and
mysql_fetch_row()?
Answer Posted / tarun singhal
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));
| Is This Answer Correct ? | 38 Yes | 9 No |
Post New Answer View All Answers
What is symfony php?
What is a stored procedure in mysql?
Distinguish between urlencode and urldecode?
What type of operation is needed when passing values through a form or an url?
What is the difference between array_map () and array_shift ()?
What is local variable in php?
Will php die?
What does php exit do?
What is the major php security hole? How to avoid?
Do you know how to get the ip address of the client?
Is php developer in demand?
What is php and why it is used?
How can I load data from a text file into a table?
what is mean by portal
How can we get ip address of a client in php?