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] Link to comment https://forums.phpfreaks.com/topic/17909-unexpected-error-cant-find-the-problem/ 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. Link to comment https://forums.phpfreaks.com/topic/17909-unexpected-error-cant-find-the-problem/#findComment-76569 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] Link to comment https://forums.phpfreaks.com/topic/17909-unexpected-error-cant-find-the-problem/#findComment-76570 Share on other sites More sharing options...
techiefreak05 Posted August 18, 2006 Author Share Posted August 18, 2006 Yeah Jeremysr, That was it, thanks! Link to comment https://forums.phpfreaks.com/topic/17909-unexpected-error-cant-find-the-problem/#findComment-76571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.