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

Explain me soundex() and metaphone()?

0 Answers  


How to check whether cookies are disbled or not in the browser ? If that is the case how do you handle the sessions ?

1 Answers  


What is PHP? Who is the father or inventor of PHP?

0 Answers  


WWhat is the functionality of md5 function in PHP?

7 Answers   Tech Mahindra,


Is php fully object oriented?

0 Answers  


Tell me what types of loops exist in php?

0 Answers  


How do I add to the beginning of an array and find the number of elements in it?

1 Answers   Rushmore Consultancy,


What is the output of the following php code?

0 Answers  


What is multidimensional array in php?

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,


How to include a file code in different files in php?

0 Answers  


Which is better python or php?

0 Answers  


Categories