Code: Select all
$SQL="INSERT INTO players (lastlogin)VALUES('$datetime') WHERE name='$player'";
Code: Select all
$SQL="INSERT INTO players (lastlogin)VALUES('$datetime') WHERE name='$player'";
Code: Select all
$player=$_SESSION('player');
I placed the ' in (player), and I still get: Fatal error: Function name must be a string in C:\wamp\www\Mythuto\logout.php on line 4. See code below:hallsofvallhalla wrote:notice the 'Code: Select all
$player=$_SESSION('player');
Code: Select all
<?php
include_once 'connect.php';
session_start();
$player=$_SESSION('player');
$lastlogin=$_POST['lastlogin'];
$datetime=date("d/m/y");
$SQL="INSERT INTO players (lastlogin)VALUES('$datetime') where name='$_SESSION(player)'";
$result=mysql_query($SQL) or die("MySql Error");
session_destroy();
?>
Should be:hallsofvallhalla wrote:notice the 'Code: Select all
$player=$_SESSION('player');
Code: Select all
$player=$_SESSION['player'];