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>"; ?> Link to comment https://forums.phpfreaks.com/topic/183364-whats-wrong-with-how-im-echoing-this/ 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 Link to comment https://forums.phpfreaks.com/topic/183364-whats-wrong-with-how-im-echoing-this/#findComment-967854 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.... Link to comment https://forums.phpfreaks.com/topic/183364-whats-wrong-with-how-im-echoing-this/#findComment-967855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.