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
Who developed php?
Tell me what are the correct and the most two common way to start and finish a php block of code?
Is php used in 2019?
Can you specify the "new line" character in single-quoted strings?
What is print_r?
Why namespace is used in php?
What are the method available in form submitting?
Explain different sorting function in php?
What is cms php?
How to include variables in double-quoted strings in php?
How can we check the value of a given variable is a number?
What is a php object?
What is framework in php?
Explain NULL?
Why php is widely used?