van login na stats

Status
Niet open voor verdere reacties.

boxin

Nieuwe gebruiker
Lid geworden
19 feb 2008
Berichten
1
START script

Om als je inlogt na de statestieken te gaan.
wie kan my er by helpen
PHP:
<?php include("header.php"); ?>

<font size=5 color=red>MAIN</font><br>

<?php
Print "<br>Welcome back, $stat[user]!";
?>
<br><br>New Players: <a href='help.php'>Learn the Basics!</a><br><br>Location of your Knock Out Link: 
<?php
Print "<br><input type=text size=47 value=http://ghetto.woelmuis.nl/page.php?x=$stat[id]>";
?>

<br><div class="tiny">Knock out your friends for money!</div><br>
<?php
 if ($stat[trap] == 'on') {
		print "<table class='darkbox'><tr><td align='center'>Your knock out link is currently <b>set</b>. You can <u>only</u> knock out your friends when your link is set.</a><br><br><a href='start.php?action=trapoff'><font color='#CC0000'>Click here to disarm your link.</font></a></td></tr></table>";
}
  if ($stat[trap] == 'off') {
		print "<table class='darkbox'><tr><td align='center'>Your knock out link is currently <b>not set</b>. You can <u>only</u> knock out your friends when your link is set.</a><br><br><a href='start.php?action=trapon'><font color='#CC0000'>Click here to set your link.</font></a></td></tr></table>";
}
?>

<?php
if ($action == trapon) {
		print "<b><font color=yellow>Now you can knock out your friends!</font></B><br><br>";
        mysql_query("update players set trap='on' where id=$stat[id]");
	}
if ($action == trapoff) {
		print "<b>You turned <b>off</b> your link</B><br><br>";
        mysql_query("update players set trap='off' where id=$stat[id]");
	}
?>

<br><font color="#ffffff"><b><font size="+1"><a href=help.php>Learn How To Play</a></font></b></font></p> 

<?php include("footer.php"); ?>
zeg maar om door te schakelen
 
Het heeft niet veel zin om 2 accounts aan te gaan maken hoor timmiejboi... :rolleyes:

Aan de hand van de code herken ik je...
Zelfde probleem als bij je registereren... Controleer je IF-statement.

Daarnaast raad ik je van harte een cursus PHP aan want de fouten die je nu maakt zijn echt beginnersfouten. Lees je wat meer in in PHP en je zult deze fouten niet weer maken. ;)
 
oh ja sorry me broertje zit ook op deze forum dus hy was nog ingelogd:|

maare

by start.php komt te staan
Sesion has expired.

en de script zie je hierboven kan iemand me helpen

sorry thadevil:evil:
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan