DiscoTrio Posted November 30, 2009 Share Posted November 30, 2009 Ive search it up and down but when I run it I get this: Parse error: syntax error, unexpected T_ECHO in /home/bmvybfbk/public_html/mod1.php on line 17 <?php $con = mysql_connect("localhost","bmvybfbk_master","74SAc194G"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("bmvybfbk_website", $con); $result = mysql_query("SELECT * FROM snews WHERE id = '0'"); while($row = mysql_fetch_array($result)) { $pointsgetter = $row['username']; $article = $row['id2'] echo $row['username'] . " wrote:<br>" . $row['title'] . "<br><br>" . $row['content'] . "<br><br>About: " . $row['game']; echo "<br><a href='mod1.php?action=approve'>[Approve]</a>"; echo " <a href='mod1.php?action=delnews'>[Delete]</a>"; echo "<br>----------------------------------------------------------------------------------------------------<br><br>"; ?> Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 30, 2009 Share Posted November 30, 2009 you missed out the semicolon on the previous line Quote Link to comment Share on other sites More sharing options...
DiscoTrio Posted November 30, 2009 Author Share Posted November 30, 2009 o...wow.....thanx Ie never been so embarrassed.... 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.