Which is the best method to fetch the data from mysql?
1.mysql_fetch_array()
2.mysql_fetch_object()
3.mysql_fetch_row()
4.mysql_fetch_assoc()
Answer Posted / pradeep
hi all,
i think mysql_fetch_object or mysql_fetch_array both are best method bcz both are take same time for result show.
but mysql_fetch_array() fetches the records using the numeric index (as numbers) or using the string index (as column)
mysql_fetch_object() fetches the records as the object.
ex. $record->id;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Tell me what is the difference between exception::getmessage and exception::getline?
Is php is dying?
Which php mvc framework is best?
What are the data types in php?
Why do we use in php?
Who is the father or inventor of php?
What is the use of header() function in PHP? What the Limitation of HEADER()?
Are objects passed by value or by reference?
What does the function get_magic_quotes_gpc() means?
What is mysqli php?
Does apache use php?
What is mod_php?
Why framework is used in php?
How to get no of arguments passed to a PHP Function?
How to get the position of the character in a string in php?