How check variable is set or not in php?
No Answer is Posted For this Question
Be the First to Post Answer
What are the popular content management systems (cms) in php?
How do we get the current session id?
What does PHP stand for?
What is difference between post and put in rest?
hi i am complted my b.tech and i want to learn php is php is good for my career and i want to know the salary growth on php any one can tell the answer plz and i am learning php myself it is easy to understand..........
Explain some of the php array functions?
Is php an object or array?
PHP serverside scripting language or client side scripting language>
Where php language is used?
What is the purpose of php?
What is laravel 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. -->