Jump to content

Whats wrong with how im echo'ing this?


DiscoTrio

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.