Tgrooms, on 12 April 2012 - 02:52 AM, said:
Nevermind I figured it out.




1 Votes
Posted 06 March 2013 - 11:41 AM
<?php require("Safe.php"); ?>
<html>
<body>
WELCOME
<a href="index.php">LogOut</a>
<body>
<html>
<? include_once("connect.php"); ?>
<?
if(isset($_SESSION['user_id'])) {
// Login OK, update last active
$sql = "UPDATE users SET lastactive=NOW() WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."'";
mysql_query($sql);
}else{
header("Location: index.php");
exit();
}
?>
This post has been edited by Atli: 07 March 2013 - 09:48 AM
Reason for edit:: Use [code] tags when posting code.
Posted 07 March 2013 - 09:42 AM
Shadowing, on 06 March 2013 - 12:29 PM, said:
Posted 07 March 2013 - 09:57 AM
Posted 07 March 2013 - 10:11 AM
Posted 07 March 2013 - 11:12 AM
Shadowing, on 07 March 2013 - 10:11 AM, said:
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
