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
What is a composer?
How to fix "headers already sent" error in php
What is a lambda function in php?
What is the use of is_array() and in_array()?
Is php coding easy?
Is it possible to destroy a cookie?
What is prepare in php?
Tell me what should we do to be able to export data into an excel file?
How to split a string into array using php?
Tell me which programming language does php resemble to?
Define soundex()?
What is strcmp () in php?
Is array a key php?
What is basename php?
What is difference between get and post in php?