how to insert logout time when browser close
Answer / perfect
When a user login a site at that time user information
is stored on the server, the user is logout their page use
session unregister function at the time we can get the time
and store to database.
| Is This Answer Correct ? | 16 Yes | 15 No |
Is laravel easy to learn?
What does the scope of variables means?
List some of the features of php7.
How to create a table to store files?
What does sign mean php?
How can you get the size of an image in PHP?
How can we determine whether a variable is set?
What is the salary for php developer(Fresher)?
How can you send email 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. -->
What is session_register()?
What's the output of the ucwords function in this example?