What is mysqli_fetch_array?
what is the use of include_once in php?
What is a namespace in php?
Why should I store logs in a database rather than a file?
What is cookies? How to create cookies in php?
How can we find the number of rows in a result set using PHP?
How to upload file in php?
How to redirect a page in php?
Write a php script to get the largest key in an array?
please send me the interview questions and answers to my mail id : srikanthgovardana@yahoo.com or srikanthgovardana@gmail.com
Which function will you use to create an array?
<?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. -->
Are sessions stateless?