What is the use of array_count_values() in php?
How to create a mysql connection?
What is env in laravel?
how to insert, update data in database
Is echo a function in php?
What is get method in java?
What is the difference between php and javascript?
What are the core OOP’s concepts?
<?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 we get ip address of client, previous reference page etc?
How to assigning a new character in a string using php?
Difference between array_combine and array_merge?
What is the output of the following php code?