Here is the code:
<link href="dlscss.css" rel="stylesheet" type="text/css">
<?php
include "config.php";
$db = mysql_connect($db_host,$db_user,$db_pass);
mysql_select_db ($db_name) or die ("Cannot connect to database");
$query= "SELECT title, news, author, date FROM news ORDER BY id DESC LIMIT 10";
$result = mysql_query($query);
while($r=mysql_fetch_array($result))
{
$title=$r["title"];
$news=$r["news"];
$author=$r["author"];
$date=$r["date"];
echo "<TABLE>
<TR>
<TD class="newstitle">$Title</TD>
</TR>
<TD class="text">$news</TD>
<TR>
<TD class="text"> Posted by $author on $date</TD>
</TR>
</TABLE>";
}
mysql_close($db);
?>
<p class="newstitle"> </p>
If it is a quotes problem i am still unsure how to clear it up (real newbie)...
Thanks
Emery