How do I install php?
No Answer is Posted For this Question
Be the First to Post Answer
What is the use of Php variables?
Why session is required?
How to check whether a number is prime or not?
How to create connection in php?
Do you know what is the function func_num_args() used for?
Can we override static method?
How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?
Why many companies are switching their current business language to php? Where php basically used?
What are the security measures we have to take for our site not to hack by others.
3 Answers Infosys, Torque Infotech,
<?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. -->
Is php procedural or oop?
How to track no of user logged in?