What does mysqli_query return?
This question is regarding version control. If two developers are committing the same php file at same time what will happen ? What error it will show (if any) ?
What is print_r?
What are the difference between include_once & Require_once?
How to check whether a number is prime or not?
How many ways can we get the value of current session id?
3 Answers Infosys, L&T, SysBiz, Torque Infotech,
How many records can be stored in mysql table?
What is session in php why it is use?
In php, objects are they passed by value or by reference?
<?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. -->
How to use http headers inside php?
Explain about Functions in PHP?
Where to put php files in apache server?