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
How many types of functions are there in php?
How do you end php?
Why do we use php?
What is the difference between laravel and php?
How to make a class in php?
Which function(s) in PHP computes the difference of arrays?
Which function would you use to insert a record into a database in php?
How to terminate the execution of a script in PHP?
What is __ construct in php?
Does php need html?
What is self in php?
Does php need apache?
How to pad an array with the same value multiple times?
What is associative array in php?
What does mvc stand for and what does each component do?