UPDATE PeTask_ProTime SET Stop_Time = NOW() WHERE Active = "true"
Access denied for user: 'apache@localhost' (Using password: NO)
Warning: mysql_query() [function.mysql-query]: Access denied for user: 'apache@localhost' (Using password: NO) in /var/www/html/management/library/common.inc.php on line 29
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /var/www/html/management/library/common.inc.php on line 29
UPDATE People SET Refresh_Time = NOW(), Logged_in = "true" WHERE PeopleID = 2
Access denied for user: 'apache@localhost' (Using password: NO)
I've got this pb when I try to run this function
function logged_in() {
if (isset($SESSION["logged_in"])){
// Update any active tasks with the current time
$s1 = "UPDATE PeTask_ProTime SET Stop_Time = NOW() WHERE Active = \"true\"";
$q1 = db_q($s1);
// Update this user with the current time
$s2 = "UPDATE People SET Refresh_Time = NOW(), Logged_in = \"true\" WHERE PeopleID = ".$SESSION["people_ID"];
$q2 = db_q($s2);
return 1;
} else {
return 0;
}
}
Please can someone give me an idea
Thanks:queasy: