Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
No Answer is Posted For this Question
Be the First to Post Answer
Why namespace is used in php?
Write a hello world program using variable?
Explain what is the static variable in function useful for?
Who is the father of PHP and explain the changes in PHP versions?
13 Answers Befree, iMark Group, Netizen,
Version of php, apache ,mysql
Why is php used for web development?
What is the goto statement useful for?
What is the function of trim?
What is in php 7?
What are hooks in php?
What does the scope of variables mean?
<?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. -->