SuperS82 Posted March 9, 2011 Share Posted March 9, 2011 Hey I have this script that lets you login, but once you enter your name and pass the page loads fine except for one small error. Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\btcs3\console.php on line 15 This is the console.php file contents: <?PHP include('config.php'); include('themes/' . $theme . '/header.php'); $membername = $_SESSION['membername']; $memberpass = $_SESSION['memberpass']; if(checkLogin($membername, $memberpass)) { $query = 'UPDATE {$dbprefix}members SET lastlogin = UNIX_TIMESTAMP(), loggedin = "1", ipnum = "'.$ip." WHERE username = '$membername'; $result = mysql_query($query) or die(mysql_error()); $memrank = getMemberInfo("rank", $membername); $memid = getMemberInfo("id", $membername); $memrankcat = getRankCatInfo("name", $memrank); define("MEMBER_RANK", $memrank); define("MEMBER_NAME", $membername); define("MEMBER_PASS", $memberpass); if($pid == "") { include("include/console/main.php"); } else { $url = getConsoleInfoById("url", $pid); include($url); } } else { echo " <br> <center><blockquote>You must login to view this page.</blockquote></center> "; } echo " <table align='center' border='0' cellspacing='0' cellpadding='0'> <tr> <td class='smalltext'><br><br><b>Powered By: <a href='http://www.bluethrust.com' target='_blank'>BT Clan Scripts v3</a></b><br><br></td> </tr> </table> "; include("themes/$theme/footer.php"); ?> Can someone please show me what I am doing wrong? PHP/5.3.4 MySQL client version: mysqlnd 5.0.7-dev - 091210 - $Revision: 304625 $ Quote Link to comment Share on other sites More sharing options...
SuperS82 Posted March 9, 2011 Author Share Posted March 9, 2011 Sorry for the double post but I fixed it just some sloppy coding on my part... Quote Link to comment 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.