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
Why session is required?
How do I see how many pages per session in google analytics?
Tell me what are the correct and the most two common way to start and finish a php block of code?
Starting or restarting a computer is called
Explain about looping in PHP?
Why do we use htaccess and where?
What is a collection in php?
Explain the difference between php4 and php5.
Is facebook still written in php?
What is meant by an associative array?
What is csrf verification?
What does the unset() function mean?
What is a php web application?
Are php session secure?
Is it possible to protect special characters in a query string?