aaron778
15-07-2005, 09:18 PM
Hi im making my own news system and i keep getting this "error Parse error: parse error, unexpected $ in /home/kayos/public_html/asa/show_news.php on line 23"
Heres The Code
<?php
include("db.php");//the database connection file
$getnews = mysql_query("SELECT * FROM
extreme_news ORDER BY id DESC");
while($r=mysql_fetch_array($getnews)){
extract($r);
echo("<table width=447 height=75 border=0 align=center cellpadding=0 cellspacing=0 bordercolor=#666666 style=border-collapse :collapse>
<tr>
<td height=34><p><font size=2 face=Arial, Helvetica, sans-serif><strong><font size=2 face=Arial, Helvetica, sans-serif>·
<b>{title}</b></font></strong><br>
{short-story}</font></p></td>
</tr>
<tr>
<td height=18><div align=right><font size=2 face=Arial, Helvetica, sans-serif>Posted
by {author} on {date}<br>
</font></div></td>
</tr>
<tr>
<td height=18><hr noshade></td>
</tr>
</table>);
<?php
Heres The Code
<?php
include("db.php");//the database connection file
$getnews = mysql_query("SELECT * FROM
extreme_news ORDER BY id DESC");
while($r=mysql_fetch_array($getnews)){
extract($r);
echo("<table width=447 height=75 border=0 align=center cellpadding=0 cellspacing=0 bordercolor=#666666 style=border-collapse :collapse>
<tr>
<td height=34><p><font size=2 face=Arial, Helvetica, sans-serif><strong><font size=2 face=Arial, Helvetica, sans-serif>·
<b>{title}</b></font></strong><br>
{short-story}</font></p></td>
</tr>
<tr>
<td height=18><div align=right><font size=2 face=Arial, Helvetica, sans-serif>Posted
by {author} on {date}<br>
</font></div></td>
</tr>
<tr>
<td height=18><hr noshade></td>
</tr>
</table>);
<?php