spike_132000 Posted December 11, 2006 Share Posted December 11, 2006 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 SCREENinclude '../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] Quote Link to comment https://forums.phpfreaks.com/topic/30215-help-with-my-code/ Share on other sites More sharing options...
spike_132000 Posted December 11, 2006 Author Share Posted December 11, 2006 I have changed the $sate4 to $date4 but the error still appears! Quote Link to comment https://forums.phpfreaks.com/topic/30215-help-with-my-code/#findComment-138930 Share on other sites More sharing options...
HuggieBear Posted December 11, 2006 Share Posted December 11, 2006 Try a semicolon after this line:[code=php:0]date1=date("d F Y")[/code] RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/30215-help-with-my-code/#findComment-138936 Share on other sites More sharing options...
JasonLewis Posted December 11, 2006 Share Posted December 11, 2006 damn, you beat me huggie. :) i to noticed that :P lol Quote Link to comment https://forums.phpfreaks.com/topic/30215-help-with-my-code/#findComment-138939 Share on other sites More sharing options...
spike_132000 Posted December 11, 2006 Author Share Posted December 11, 2006 I realised it now! Thanks Alot!!! Quote Link to comment https://forums.phpfreaks.com/topic/30215-help-with-my-code/#findComment-138940 Share on other sites More sharing options...
kenrbnsn Posted December 11, 2006 Share Posted December 11, 2006 Missing a semi-colon on the first and third lines of this three line set:[code]<?php$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]Ken Quote Link to comment https://forums.phpfreaks.com/topic/30215-help-with-my-code/#findComment-138941 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.