add
Code: Select all
echo $datetime;
Code: Select all
echo $datetime;
Included is a screenshot of players in phpMyAdminWarning: mysql_query() [function.mysql-query]: Access denied for user 'SYSTEM'@'localhost' (using password: NO) in C:\wamp\www\Mythuto\logout.php on line 19
Code: Select all
$result=mysql_query($SQL)or die("it crapped out");
I tried the:hallsofvallhalla wrote:change it toCode: Select all
$result=mysql_query($SQL)or die("it crapped out");
Code: Select all
$result=mysql_query($SQL)or die("MySql Error");
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\Mythuto\logout.php on line 19
it crapped ou
Code: Select all
<link href="style.css" rel="stylesheet" type="text/css" />
<STYLE type="text/css">
<!--
BODY { background-image:url(logoutFinish.png);
background-repeat:no-repeat;
background-position:center;
background-attachment:fixed }
-->
</STYLE>
<body bgcolor="black">
<body text="white">
<div id="return">
<?php
session_start();
$datetime=date("d/m/y h:i:s"); //create date time
$sql="INSERT INTO players (lastlogin)VALUES('$datetime')";
$result=mysql_query($sql) or die("MySql Error");
session_destroy();
?>
</div>
where u put "it crapped out" I changed it too "MySql Error"hallsofvallhalla wrote:whats the mysql error?
i did place the include_once, its in the above code, and it still doesnt work.Torniquet wrote:im pretty sure you need to have the include in there lol. as its trying to access a DB. in halls tut as far as i can remember he is not accessing any DBs.
stick the include in and see if it works :p