techiefreak05 Posted August 18, 2006 Share Posted August 18, 2006 Hi, i have two codes.. and they both produce an UNEXPECTED ; ERROR[code]<?php $query = mysql_query("SELECT * FROM outbox WHERE `from` = '$_SESSION[username]'");while ($array = mysql_fetch_array($query)){ echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#CCFFFF><td height=50><b>To:</b> <a href=" . $array['to'] . ".html>" . $array['to'] . "</a ><br><b>Read:</b>".$array['status']. "<br><b>Date:</b>" .$array['date']. "<br><b>Subject:</b>" .$array['subject'].; echo "</td></tr></table>"; echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#FFFFCC><td height=150><b>Message:</b>" .$array['message'].; echo "</td></tr></table><br>"; }?>[/code]and[code]<?php $query = mysql_query("SELECT * FROM messages WHERE `to` = '$_SESSION[username]'");while ($array = mysql_fetch_array($query)){ echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#CCFFFF><td height=50><b>From: <a href=" . $array['from'] . ".html>" . $array['from'] . "</a ><br>Read:".$array['status']. "<br>Date:" .$array['date'].; echo "</b></td></tr></table>"; echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#FFFFCC><td height=35><a href=\"showMessage.php?id=".$array['id']."\">Subject: ".$array['subject']."</a>"; echo "</td></tr></table><br>"; }?>[/code] Quote Link to comment Share on other sites More sharing options...
Jeremysr Posted August 18, 2006 Share Posted August 18, 2006 In some of your echo lines, you have .'s at the end right before the semi-colon. Try removing them. Quote Link to comment Share on other sites More sharing options...
BillyBoB Posted August 18, 2006 Share Posted August 18, 2006 [code]<?php $query = mysql_query("SELECT * FROM outbox WHERE `from` = '$_SESSION[username]'");while ($array = mysql_fetch_array($query)){ echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#CCFFFF><td height=50><b>To:</b> <a href=" . $array['to'] . ".html>" . $array['to'] "</a ><br><b>Read:</b>".$array['status']. "<br><b>Date:</b>" .$array['date']. "<br><b>Subject:</b>" .$array['subject']; echo "</td></tr></table>"; echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#FFFFCC><td height=150><b>Message:</b>" .$array['message']; echo "</td></tr></table><br>"; }?>[/code]and [code]<?php $query = mysql_query("SELECT * FROM messages WHERE `to` = '$_SESSION[username]'");while ($array = mysql_fetch_array($query)){ echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#CCFFFF><td height=50><b>From: <a href=" . $array['from'] . ".html>" . $array['from'] "</a ><br>Read:".$array['status']. "<br>Date:" .$array['date']; echo "</b></td></tr></table>"; echo "<table bgcolor=#99CCFF width=250><tr bgcolor=#FFFFCC><td height=35><a href=\"showMessage.php?id=".$array['id']."\">Subject: ".$array['subject']."</a>"; echo "</td></tr></table><br>"; }?>[/code] Quote Link to comment Share on other sites More sharing options...
techiefreak05 Posted August 18, 2006 Author Share Posted August 18, 2006 Yeah Jeremysr, That was it, thanks! 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.