what is the difference between mysql_fetch_array() and
mysql_fetch_row()?
Answer Posted / guru
Mysql_fetch_array():
Mysql_fetch_array() returns row as an associative, numeric array or both based on parameters passed in it. Three types of parameters can be passed in mysql_fetch_array function.
1. MYSQL_BOTH - return both associative and numeric array
2. MYSQL_ASSOC - return associative array
3. MYSQL_NUM - return numeric array
Reference:http://www.phponwebsites.com/2014/03/php-mysql-fetch-array.html
Mysql_fetch_row():
It return row as numeric array. We can't use associative indices to retrieve data from mysql table using php.
Reference: http://www.phponwebsites.com/2014/03/php-mysql-fetch-row.html
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is empty in excel?
How does php and apache work?
What is the difference between apache vs niginx?
How to get length of an array in PHP?
Why laravel is the best php framework in 2019?
What is empty php?
What are majic methords in php?
Is laravel an oop?
What is a trait in php?
Do you know what is the difference between the include() and require() functions?
What are php string functions?
Which function would you use to determine the length of a string in php?
How can we submit form without a submit button?
Which are the best start and end tags to use?
What does the unset() function means?