ChrisMartino Posted January 16, 2010 Share Posted January 16, 2010 <?php include "base.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Description" content="Information architecture, Web Design, Web Standards." /> <meta name="Keywords" content="your, keywords" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="Distribution" content="Global" /> <meta name="Author" content="Erwin Aligam - [email protected]" /> <meta name="Robots" content="index,follow" /> <link rel="stylesheet" href="images/MarketPlace.css" type="text/css" /> <LINK REL="SHORTCUT ICON" HREF="favicon.ico"> <title>Marketplace</title> </head> <body> <!-- wrap starts here --> <div id="wrap"> <!--header --> <div id="header"> <div id="header-links"> <p> <?php if(!empty($_SESSION['LoggedIn']) && !empty($_SESSION['Username'])) { ?> <p>Logged in as: <a href="profile.php"><b><?=$_SESSION['Username']?></a></b> | Account: <?=$_SESSION['AccountType']?> | <a href="logout.php">Logout</a> </p> <?php } else { ?> <p>Welcome <b>Guest</b>, Please <a href=\"login.php\">Login</a> or <a href=\"register.php\">Register</a></p> <?php } ?> </p> </div> <!--header ends--> </div> <div id="header-photo"></div> <!-- navigation starts--> <div id="nav"> <ul> <li><a href="index.html">Home</a></li> <li><a href="2-columns.html">Login</a></li> <li id="current"><a href="index.html">Register</a></li> <li><a href="index.html">Submit Track</a></li> <li><a href="index.html">Listen To Tracks</a></li> <li><a href="index.html">Forums</a></li> <li><a href="index.html">Contact</a></li> </ul> <!-- navigation ends--> </div> <!-- content-wrap starts --> <div id="content-wrap" class="three-col" > <div id="sidebar"> <h1>Sponsors</h1> <ul class="sidemenu"> <li><a href="index.html">Home</a></li> <li><a href="#TemplateInfo">Template Info</a></li> <li><a href="#SampleTags">Sample Tags</a></li> <li><a href="http://www.styleshout.com/">More Free Templates</a></li> <li><a href="http://www.4templates.com/?aff=ealigam">Premium Templates</a></li> </ul> <!-- sidebar ends --> </div> <div id="rightcolumn"> <h1>Forum Stats</h1> <p>Top poster stuff here</p> <h1>*Newest track</h1> <p>it is here too! </p> </div> <div id="main"> <a name="TemplateInfo"></a> <h1><?=$_SESSION['Username']?>'s Profile</h1> <p> <?php $Administrator = "Administrator"; $AccountQurey = $_SESSION['AccountType']; $User = $_SESSION['Username']; $IP = $_SESSION['ip']; $Email = $_SESSION['EmailAddress']; $AccTyp = $_SESSION['AccountType']; $action = $_GET['change']; $Picture = "pic"; $Email = "email"; $Password = "password"; $Start = ""; ?> <?php if ($action == $Start) { ?> <center> <img src="<?=$_SESSION['AccountPic']?>" width="130" height="130"> <a href="profile.php?change=pic">[Change Picture]</a> </center> <br /> <?php echo "<b>Username:</b> $User"; ?> <br /> <?php echo "<b>IP Address:</b> $IP"; ?> <br /> <?php echo "<b>Email Address:</b> $Email"; ?> <br /> <?php echo "<b>Account Type:</b> $AccTyp"; ?> <br /> <?php if($AccountQurey == $Administrator) { echo "<b>Administrator:</b> Yes"; } else { echo "<b>Administrator:</b> No"; ?> <?php } if ($action == $Picture) { if(!empty($_POST['username'])) { ?> <center> <p>Current Picture:</p> <img src="<?=$_SESSION['AccountPic']?>" width="130" height="130"> <a href="profile.php?change=pic">[Change Picture]</a> <br /> <form method="post" action="profile.php?change=picture" name="registerform" id="registerform"> <fieldset> <label for="picture">Picture URL:</label><input type="text" name="picture" id="picture" /><br /> <input type="submit" name="register" id="register" value="Change Picture" /> </fieldset> </form> </center> <?php } else { $picUPDATE = mysql_real_escape_string($_POST['picture']); $picUPDATEUSR = mysql_real_escape_string($User); $changepic = mysql_query("UPDATE `a7331843_account`.`users` SET `ProfilePic` = '".$picUPDATE."' WHERE `users`.`Username` = '".$picUPDATEUSR."' LIMIT 1 ); } ?> <br /> </p> </div> <!-- content-wrap ends--> </div> <!-- footer starts --> <div id="footer-wrap"><div id="footer"> <p> © 2006 <strong>Your Company</strong> | Design by: <a href="http://www.styleshout.com/">styleshout</a> | Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> <a href="index.html">Home</a> | <a href="index.html">Sitemap</a> | <a href="index.html">RSS Feed</a> </p> </div></div> <!-- footer ends--> <!-- wrap ends here --> </div> </body> </html> I keep getting random errors on that but i cant seem to find them can anyone help? At the moment im getting a error on: "<div id="footer-wrap"><div id="footer">" The error: "Parse error: parse error, unexpected T_STRING in profile.php on line 208" Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/ Share on other sites More sharing options...
trq Posted January 16, 2010 Share Posted January 16, 2010 And which is line 208? Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996053 Share on other sites More sharing options...
Buddski Posted January 16, 2010 Share Posted January 16, 2010 $changepic = mysql_query("UPDATE `a7331843_account`.`users` SET `ProfilePic` = '".$picUPDATE."' WHERE `users`.`Username` = '".$picUPDATEUSR."' LIMIT 1 ); Should be $changepic = mysql_query("UPDATE `a7331843_account`.`users` SET `ProfilePic` = '".$picUPDATE."' WHERE `users`.`Username` = '".$picUPDATEUSR."' LIMIT 1 "); Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996054 Share on other sites More sharing options...
trq Posted January 16, 2010 Share Posted January 16, 2010 Might be time to get a decent editor with syntax highlighting? Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996055 Share on other sites More sharing options...
Buddski Posted January 16, 2010 Share Posted January 16, 2010 Why do that when the PHP Freaks forum does it for you Thats how I noticed it soo quickly.. Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996056 Share on other sites More sharing options...
trq Posted January 16, 2010 Share Posted January 16, 2010 Why do that when the PHP Freaks forum does it for you Thats how I noticed it soo quickly.. Well, for one, people have to waste there time reading it. Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996057 Share on other sites More sharing options...
ChrisMartino Posted January 16, 2010 Author Share Posted January 16, 2010 You guys recommend any free simple editors? with syntax highlighting? Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996070 Share on other sites More sharing options...
ChrisMartino Posted January 16, 2010 Author Share Posted January 16, 2010 I'm getting this now: "Parse error: parse error, unexpected $ in profile.php on line 235", Script ends at 234 : / Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996071 Share on other sites More sharing options...
Buddski Posted January 16, 2010 Share Posted January 16, 2010 Notepad++ is a good option. That error is because you are missing a brace somewhere.. Getting notepad++ will help you find it. Link to comment https://forums.phpfreaks.com/topic/188676-keep-getting-errors-but-cant-find-problem/#findComment-996072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.