Describe which programming language does php parallel to?
Explain which cryptographic extension provide generation and verification of digital signatures?
Explain the difference between mysql_connect and mysql_pconnect?
Can I include php in javascript?
What is difference between count or sizeof function in php?
What are Routines?
What are the variables in php?
How do I start a php session?
What are the different types of Errors in PHP?
20 Answers Cisco, TCS, Troop Software,
How can you associate a variable with a session?
How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.
What are the different errors in php?
<?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. -->