PDA

View Full Version : Can Some One Help Me



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>&middot;
<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

Mentor
15-07-2005, 09:37 PM
try this



<?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>&middot;
<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>");
?>

aaron778
15-07-2005, 10:13 PM
Thnx It Works Now :)

:Blob
16-07-2005, 02:15 PM
Lmao


That aint yours, as you can see its exactly the same to the one that someone else has made "/

Want to hide these adverts? Register an account for free!