Jump to content

spike_132000

New Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

spike_132000's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have changed the $sate4 to $date4 but the error still appears!
  2. Hey there, I am making a PSP Security Website, I have this Code, but I get an unexpected T_VARIABLE ERROR on line 43. here is the full code [code]<?php //MEMBER SCREEN include '../connect.php'; session_start(); ?> <center> </center><br><br> <link rel="stylesheet" href="../style.css" type="text/css"> <?php $username=$_GET['user'];         $userstats="SELECT * from users where username='$username'";     $userstats2=mysql_query($userstats) or die("Could not get user stats");     $userstats3=mysql_fetch_array($userstats2);     $name=$userstats3['name']; $ip = $_SERVER['REMOTE_ADDR'];     $ip1=$userstats3['ip1'];     $ip2=$userstats3['ip2'];     $ip3=$userstats3['ip3'];     $ip4=$userstats3['ip4'];     $ip5=$userstats3['ip5']; $date1=$userstats3['date1']; $date2=$userstats3['date2']; $date3=$userstats3['date3']; $date4=$userstats3['date4']; $date5=$userstats3['date5']; $ip5=$ip4; $ip4=$ip3; $ip3=$ip2; $ip2=$ip1; $ip1=$ip; $date5=$date4; $date4=$date3; $date3=$date2; $date2=$date1; $date1=date("d F Y")       $SQL = "UPDATE users set ip1='$ip1',date1='$date1',ip2='$ip2',date2='$date2',ip3='$ip3',date3='$date3',ip4='$ip4',date4='$sate4',ip5='$ip5',date5='$date5' where username='$username'"; mysql_query($SQL) or die ("Sorry, but the service in unnavailable at the moment!") ?>[/code] I don't understand what is wrong![code][/code]
  3. Hey There, I have this code. it is for my internet game - [a href=\"http://undergroundwarz.samwillis.net\" target=\"_blank\"]http://undergroundwarz.samwillis.net[/a]. I am having problems when i try to use it, what it is supposed to do is, take money from one persons's bank and put it into another, like transfering money between two accounts! Here is the code for "bank4.php" [code] <? include 'connect.php'; session_start(); ?> <link rel="stylesheet" href="style.css"> <? if (isset($_SESSION['player'])) { $player=$_SESSION['player']; $ide=$_POST['id']; $userstats="SELECT * from km_users where playername='$player'"; $userstats2=mysql_query($userstats) or die("Could not get user stats"); $userstats3=mysql_fetch_array($userstats2); $tuserstats="SELECT * from km_users where ID='ide'"; $tuserstats2=mysql_query($tuserstats) or die("Could not get other players stats"); $tuserstats3=mysql_fetch_array($tuserstats2); $gold1=$_POST['gold']; if ($userstats3[bank]>$gold) { $updatebanks="update km_users set gold=gold-'$gold1' where playername='$player'"; $updateother="update km_users set gold=gold+'$gold1' where ID='$ide'"; mysql_query($updatebanks) or die("Could not Update You"); mysql_query($updateother) or die("Could not Update Player"); print "<center>Successfully Transfered $gold gold to $ide.<br>Click <a href='index.php'>here</a> to return"; } else if ($userstats3[bank]<$gold) { print "<center>You do not have that amount of gold to Transfer"; } else if ($gold=='-') { print "<center>You cannot transfer negative amounts"; } } else { print "<center>You are not logged in"; die(); } ?> [/code] Would Someone be able to tell me where I am going wrong... Here is the code from "bank.php" that sends the data to "bank4.php" [code] print "<form action='bank4.php' method='post'>ID to Send To: <input type='text' name='id'> Amount to Send: <input type='text' name='id'><input type='submit' value='Transfer Cash'></form>"; [/code] Thank You in Advance!
  4. Okay... This is beyond a Joke! I only need help with this... I've waited 2 days and still no replys!! Everyone gets replies!!!
  5. Jeeez, I've waiting 4 hours and no one has replied... PLEASE HELP!!! How come i don't get a reply...
  6. Hey there, can you have a look at the code below PLEASE!, and tell me what's wrong with it... What I want it to do is add [b]100 times the opponents level[/b] to [b]curexp[/b], then when [b]curexp[/b] is the same or higher than [b]nexexp[/b], it adds one to [b]level[/b] and makes [b]curexp[/b] equal [b]zero[/b] and make [b]nexexp=nexexp+1000[/b]... The Code is below... [code]print "<b>Congratulations, You have slain $oppstats3[playername] and have gained $ptsgained Skill Points.</b><br>";         $updateyourstats="update km_users set skillpts='$skillpts+$ptsgained',honor='$honor+1',curexp='$curexp+100' where playername='$player'"; mysql_query($updateyourstats) or die("Could not update your stats"); $updateopp="update km_users set skillpts='$skillpts-$ptslost',dead='Yes',killer=$player,numberattck='0', honor='$honor-1' where ID='$playerID'";         mysql_query($updateopp) or die(mysql_error());         print "Back to <A href='index.php'>Main game page</a>.";       }[/code] Cheers. Spike_132000
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.