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

Where can I learn php?

720


Explain me difference between mysql_connect and mysql_pconnect?

742


What is php7?

835


What is T_PAAMAYIM_NEKUDOTAYIM?

890


What are php data types?

730


Can we set session value in javascript?

751


What is curl php?

720


Name some of the popular frameworks in php.

750


Is php used in 2019?

732


What is PECL?

981


What does $this do in php?

734


Explain what is the difference between $var and $$var?

763


Whether php supports microsoft sql server?

771


Where is php code written?

724


Which escape sequences can be used in single quoted strings in php?

749