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

Post New Answer

More PHP Interview Questions

Why namespace is used in php?

0 Answers  


Write a hello world program using variable?

0 Answers  


Explain what is the static variable in function useful for?

0 Answers  


Who is the father of PHP and explain the changes in PHP versions?

13 Answers   Befree, iMark Group, Netizen,


Version of php, apache ,mysql

1 Answers  






Why is php used for web development?

0 Answers  


What is the goto statement useful for?

0 Answers  


What is the function of trim?

0 Answers  


What is in php 7?

0 Answers  


What are hooks in php?

0 Answers  


What does the scope of variables mean?

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  


Categories