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
Explain me is it possible to destroy a cookie?
How would you open a directory for reading in php?
What is encapsulation in php with example?
Tell me what is the difference between get and post?
What is the meaning of die in php?
How to generate a character from an ascii value?
Code to open file download dialog in PHP?
Tell me what is the main difference between php 4 and php 5?
What is php static function?
Explain PHP looping?
How to take a substring from a given string?
What types of loops exist in php?
What are the different data types in javascript?
How do you destroy a session?
Write a program to upload a file in php?