Hai folks,
do you see any syntax error in this piece of code?
it saysCode:<?php include("../includes/connection.php"); include("../includes/set_time_zone.php"); $log_username=$_SESSION['username']; //correctly pirints the username currently loged in when echo $log_dt=date("Y/m/d h:i:s A"); //correctly prints the time and date when echo function reglog($event){ $query = "INSERT into logs VALUES ('','$event','$log_username','$log_dt')"; if ($result=mysql_query($query) or die (mysql_error())); } ?>
Undefined variable: log_username....
Undefined variable: log_dt



Reply With Quote



Bookmarks