Eljay
Elite Member
:O
Posts: 2949 Reputation: 77
– / / –
Joined: May 2004
|
RE: I need PHP/MySQL help again
code: $query = mysql_query("SELECT * FROM news_table ORDER by NewsNum");
while($array = mysql_fetch_array($query)) {
echo "<table border='0' width='421' id='table1' cellspacing='0' cellpadding='0'><tr><td width='2%' rowspan='2' background='images/border.gif'> </td><td width='2%' rowspan='2'> </td><td width='71%'><font size='1' face='Verdana'><b>".$array[NewsTitle]."</b></font></td><td width='27%'><font size='1' face='Verdana'><b>".$array[NewsDate]."</b></font></td></tr><tr><td colspan='2'><font size='1' face='Verdana'>".$array[NewsStory]."</font></td></tr></table><br>";
}
?>
|
|