The error is:

Parse error: parse error, unexpected T_ECHO, expecting ',' or ';' in XXXXXXXXXXX on line 126


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>


 
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">

 
  <title>RetroBlockland</title>
</head>


<body style="background-position: left top; opacity: 0.792; background-repeat: repeat; color: rgb(255, 255, 51); background-color: rgb(255, 255, 255); background-image: url(bckground2.png);" alink="#ffcc33" link="#ffcc33" vlink="#cc9933">


<table style="background-color: rgb(255, 255, 255); width: 606px; height: 74px; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="2">


  <tbody style="background-image: url(./background3.png);">


    <tr>


      <td style="border: 3px solid rgb(0, 0, 102); height: 74px; width: 516px; background-color: rgb(204, 204, 255);"><img style="width: 595px; height: 109px;" alt="RetroBlockland" src="rbllogo.png"></td>


    </tr>


 
  </tbody>
</table>


<br>


<table style="background-color: rgb(255, 255, 255); width: 643px; height: 232px; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="1" cellspacing="1">


  <tbody style="background-image: url(./background3.png); background-repeat: no-repeat;">


    <tr>


      <td style="border: 3px solid rgb(0, 0, 102); height: 323px; width: 117px; text-align: center; background-color: rgb(204, 204, 255); vertical-align: top;"><span style="color: rgb(255, 255, 51);">.:Navigation:.</span><br style="color: rgb(255, 255, 51);">


      <br>


      <a href="./index.php">Home</a><br>


      <a href="./archives.php">Archives</a><br>


      <a href="./gallery.php">Gallery</a><br>


      <a href="./mods.php">Mods</a><br>


      <a href="./addons.php">Add-Ons</a><br>


      <a href="./maps.php">Maps</a><br>


      <a href="./bricksaves.php">Brick Saves</a><br>


      <a href="./helpfaq.php">Help/FAQ</a><br>


      <a href="./contactus.php">Contact Us</a><br>


      <a href="./forum/index.php">Forum</a></td>


      <td style="width: 6px; height: 323px; background-color: rgb(255, 255, 255); text-align: center; background-image: url(./background.png);"></td>


      <td style="border-style: solid; border-color: rgb(0, 0, 102); height: 323px; width: 445px; background-color: rgb(204, 204, 255); text-align: center; vertical-align: top;">
     
      <div style="text-align: center;"></div>


     
      <center>
     
      <div style="text-align: left;">
      </div>
<br>
<?php
$host = "localhost"; // the database location. if you dont know it, leave it as it is
$dbuser = "XXX"; // the database username
$dbpass = "XXXs"; // the databases user's pass
$dbname = "XXX"; // the name of the database

// The actual connection. DO NOT EDIT THESE
mysql_connect("$host","$dbuser","$dbpass"); // Using the variables stated above
mysql_select_db("XXX");

// the query view code.
$find = mysql_query("select * from XXX LIMIT 0,5");
// getting all the info
while($f=mysql_fetch_array($find))
{
$author=$f["author"];
$content=$f["content"];
$title=$f["title"];
$date=$f["date"];
}
echo '<table style="text-align: left; width: 450px; height: 202px;"
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td
 style="border-style: solid; border-color: rgb(255, 204, 0); height: 25px; background-image: url(./yellow7.png);">';
echo $title
echo ' :: By: ';
echo $author
echo ' :: Post Date: ';
echo $date
echo '</td>
    </tr>
    <tr>
      <td
 style="border-style: solid; border-color: rgb(255, 204, 0); height: 150px; background-image: url(./yellow5.png); text-align: left; vertical-align: top;">';
echo $content
echo ' </td></tr></tbody></table>';
?>
      </center>
      </td>
    </tr>
  </tbody>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>
Laughing You have to read the error. It says you're missing a semicolon here:

echo $title

Smile
Wierd. It still doesnt work.


Code:


// The actual connection. DO NOT EDIT THESE
mysql_connect("$host","$dbuser","$dbpass"); // Using the variables stated above
mysql_select_db("techno3_rblsite");

// the query view code.
$find = mysql_query("select * from content_news LIMIT 0,5");
// getting all the info
while($f=mysql_fetch_array($find))
{
$author=$f["author"];
$content=$f["content"];
$title=$f["title"];
$date=$f["date"];
}
echo '<table style="text-align: left; width: 450px; height: 202px
 border="0" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <td
 style="border-style: solid; border-color: rgb(255, 204, 0); height: 25px; background-image: url(./yellow7.png);">';
echo $title;
echo ' :: By: ';
echo $author;
echo ' :: Post Date: ';
echo $date;
echo '</td>
    </tr>
    <tr>
      <td
 style="border-style: solid; border-color: rgb(255, 204, 0); height: 150px; background-image: url(./yellow5.png); text-align: left; vertical-align: top;">';
echo $content
echo ' </td></tr></tbody></table>';
?>

     

      </center>

      </td>


    </tr>


 
  </tbody>
</table>



<br>


<br>


<br>


<br>


<br>


<br>


<br>


<br>


</body>
</html>

I don't see anything specifically wrong; just make sure that you have " matched with ", ' with ', and semicolons at the end of each and every line. What error are you getting?
you're missing a semicolon here:

Quote:
echo $content


which it probably tells you in the error Rolling Eyes (next time you are asking for help at it says error on line n, just post lines n-2 to n+2 - not the whole thing - and always include the error, which you didn't do the second time)
Laughing exactly:) He's one of the Blocklanders that I referred here for PHP help.
Kllrnohj wrote:
you're missing a semicolon here:

Quote:
echo $content


which it probably tells you in the error Rolling Eyes (next time you are asking for help at it says error on line n, just post lines n-2 to n+2 - not the whole thing - and always include the error, which you didn't do the second time)


Ah OK. I thought that it could've been an error earlier in the script that helped create this error.

Thanks guys Very Happy
No prob. Keep bringing us your problems and issues.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement