How many ways to include variables in double-quoted strings in php?
No Answer is Posted For this Question
Be the First to Post Answer
<?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. -->
Suppose a variable may passed to other page using any of get,post,session,cookie methods and u want to retrive that variable value . what is the syntax?
Tell me how do you define a constant?
Where are the persistent cookies stored on your computer?
how to insert logout time when browser close
How many Types of COmments are there in PHP and what are they?
What is string and its function?
How can we pass the variable through the navigation between the pages?
What is the use of htmlentities in php?
How to read and display a HTML source from the website url?
How to define a user function?
How can I embed a java program in php file and what changes have to be done in php.ini file?