How to fix "headers already sent" error in php
No Answer is Posted For this Question
Be the First to Post Answer
How to fix "headers already sent" error in php
What are examples of independent and dependent variables?
How do you format and output a number with leading zero's?
Is multiple inheritance supported in php?
How to create a session? How to set a value in session? How to remove data from a session?
What is the best way to test the strpos() return value in php?
How to get total number of elements used in array?
What is the goto statement useful for?
What is the use of paypal in the e-commerece website?
Explain what is the function file_get_contents() usefull for?
<?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. -->
What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?