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 facebook still written in php?
How can you propagate a session id?
how can i develop forum code? any one pleale help me on this question
Which operator is used to concatenate two strings in PHP?
Is strcmp case sensitive?
What is the use of the function 'imagetypes()'?
What is api used for?
What is htaccess in php?
What is the function to count elements in an array in PHP?
Write a program to upload a file in php?
What is a php namespace?
Can we extend final class in php?
Why does php start with variables?
How to convert numbers to strings in php?
Is php faster than javascript?