J
|
Jane 11/21/2007 |
Gerson, global $conn; $str = "select user_id from user where login='".$_SESSION["UserID"]."'"; $rs = db_query($str,$conn); $data = db_fetch_array($rs); $strInsert = "insert into access (user_id,date_hour) values (".$data["user_id"].",now())"; db_exec($strInsert,$conn); |