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
How can you propagate a session id?
What is isset post?
Explain a resource?
Explain the casts allowed in PHP?
What is new static in php?
What is dao in php?
What is array filter php?
What is the main function of php?
How to redirect https to http url through .htaccess?
How arrays are used in php?
What is the difference between characters 23 and x23?
Why many companies are switching their current business language to php?
What is the difference between characters 34 and x34?
Explain me what is the meaning of a persistent cookie?
What is the use of session and cookies in php?