Tell me when a conditional statement is ended with an endif?
No Answer is Posted For this Question
Be the First to Post Answer
How do I sort numbers in php?
Explain me differences between get and post methods?
Tips to optimize the php script..... Suggestion for exception handling in php...
How to Retrieve the Session ID of the Current Session?
Write a program to find the factorial of a number in php?
Is php still used?
Can we run php on tomcat server?
write code to find the date difference b/w two given date using PHP not MYSQL function?
3 Answers HyperQuality, Synctra Solutions,
Explain the difference between $var and $$var?
How to remove values saved in the current session?
What is php sequence?
<?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. -->