Hi
Can someone help me in writing this function? I want to log user action and store it in the database
[PHP]
<?php
function log(_action) {
include_once('. ./ez_sql.php');
$db->query("INSER T INTO LogsTableMainsc reen (page, action, userID, type, date) VALUES ('mainscreen', '$action', " . $_SESSION['user']->userID . ", 'drop list', getDate())");
}
?>
[/PHP] [PHP].....
....
log("genre");
.....
[/PHP]Thanks
Can someone help me in writing this function? I want to log user action and store it in the database
[PHP]
<?php
function log(_action) {
include_once('. ./ez_sql.php');
$db->query("INSER T INTO LogsTableMainsc reen (page, action, userID, type, date) VALUES ('mainscreen', '$action', " . $_SESSION['user']->userID . ", 'drop list', getDate())");
}
?>
[/PHP] [PHP].....
....
log("genre");
.....
[/PHP]Thanks
Comment