How many ways there are to fetch the data from the Database?

Answers were Sorted based on User's Feedback



How many ways there are to fetch the data from the Database?..

Answer / dharmendra gurjar

mysql_fetch_array
mysql_ftech_row
mysql_fetch_object
mysql_fetch_assoc

the four way to help you to find the data from the database.

Is This Answer Correct ?    45 Yes 1 No

How many ways there are to fetch the data from the Database?..

Answer / vignesh

4 way

Is This Answer Correct ?    16 Yes 1 No

Post New Answer

More PHP Interview Questions

how do we can copy of the content of a web page with the help og the URL and display them onto any other page

5 Answers  


What is composer json?

0 Answers  


What is difference between echo and print_r in php?

0 Answers  


<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->

1 Answers  


!== represents what?

2 Answers  


Does https prevent csrf?

0 Answers  


How do you check if a variable has been set in php?

0 Answers  


Where are the persistent cookies stored on your computer?

0 Answers  


What is if isset ($_ post submit )) in php?

0 Answers  


How can we determine whether a variable is set?

0 Answers  


how to track no of users logged in?

0 Answers  


How do I sort numbers in php?

0 Answers  


Categories