Uploaded by kavyamurugesan2k1

EX-13 Session and Cookies Handling

advertisement
<?php
header('Refresh:1;');
mysql_connect('localhost','root','');
mysql_select_db('test');
$q="select * from login where count!=0";
$q1=mysql_query($q);
$count=mysql_num_rows($q1);
echo "Total Online User :".$count;
?>
Output:
Conduct of Experiment (30)
Record (20)
Viva (10)
Total (60)
RESULT:
Thus, the PHP program to make use of session and cookies has been done successfully.
Download