What are the different ways we can retrive the mysql results
using php ? Explain each



What are the different ways we can retrive the mysql results using php ? Explain each..

Answer / prasad

mysql_fetch_row //fetch as row
mysql_fetch_array //fetch as array.retrieve data using
index or feild name
mysql_fetch_assoc //fetch as associative array
mysql_fetch_object //fetch as object

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More PHP Interview Questions

What is a null coalescing operator in php7?

0 Answers  


Is it easy to learn wordpress?

0 Answers  


When is a conditional statement ended with an endif?

0 Answers  


Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

0 Answers   Amazon, FGD,


What is the difference between == and === in php?

0 Answers  






What is php dependency injection?

0 Answers  


Whats the difference between include() and require()?

4 Answers  


How can you submit a form without a submit button?

0 Answers  


Which function would you use to read a line of data from a file in php?

0 Answers  


What is prepared statement in php?

0 Answers  


List some string function name in php?

0 Answers  


Is php object oriented?

0 Answers  


Categories