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

can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

3 Answers  


How to add a cookie?

2 Answers  


What is local variable in php?

1 Answers  


Why should I learn php?

1 Answers  


How can I display text with a php script?

1 Answers  


Tell us how can we display the output directly to the browser?

1 Answers  


What u mean by query?

1 Answers  


Is php used in 2019?

1 Answers  


What are the ways we can destroy a session variable ?

3 Answers  


What are the basic steps to store PHP session in to Database?

1 Answers   Rediff,


How do i explode this string '||25||34||73||94||116||128' i need to have a array like this array ( 0 => '25', 1 => '34', 2 => '73', 3 => '94', 4 => '116', 5 => '128' ) explode("||", $array); didnt work for me i get this array array ( 0 => '', 1 => '25', 2 => '34', 3 => '73', 4 => '94', 5 => '116', 6 => '128', )

2 Answers  


What is the basic function to search files for lines (or other units of text) that contain a pattern.

1 Answers  


Categories