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 / pratik

mysql_fetch_object() is the best method. It is not
generally affected in small result. mysql_fetch_array() has
some limit to fetch data from table. when result it too high
(more than 4000 record) at that time
mysql_fetch_object()will support.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does php support polymorphism?

503


What are the string functions in php?

518


Do loops php?

513


Difference between array_combine and array_merge?

524


What is use of count() function in php?

563






What is the difference between characters  and #?

532


Is facebook still in php?

509


How do I run a php script?

553


What is mean by an associative array?

529


What is sticky form in php?

497


Explain array_uintersect()?

585


Tell me what sized websites have you worked on in the past?

499


Explain converting an object?

606


What is print_r?

508


Tell me which programming language does php resemble to?

499