Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
How to create a web form?
Why delimiter is used in mysql?
What is php and sql used for?
How can we register the variables into a session?
What is the use of header() function in PHP? What the Limitation of HEADER()?
<?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. -->
Why do we use csrf token?
what is the difference between ph4 and php5
What is .htaccessfile and use of this file
what is variable scope, which variables are accessible from where and what are "undefined variable" errors?
How does cookies work in php?
What are the differences between PHP 3 and PHP 4 and PHP 5?