How many ways there are to fetch the data from the Database?
Answers were Sorted based on User's Feedback
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 do we can copy of the content of a web page with the help og the URL and display them onto any other page
What is composer json?
What is difference between echo and print_r in php?
<?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. -->
!== represents what?
Does https prevent csrf?
How do you check if a variable has been set in php?
Where are the persistent cookies stored on your computer?
What is if isset ($_ post submit )) in php?
How can we determine whether a variable is set?
how to track no of users logged in?
How do I sort numbers in php?