אההההם לא ציינתה שם משתמש וסיסמא נכונים (ככה אני חושב...) בשורה:
mysql_connect('localhost','user','password');
אהההם וגם תיקנתי לך כמה דברים...
PHP קוד:
<?php
mysql_connect('localhost','user','password');
mysql_select_db('news'); // החלף את השם של בסיס הנתונים בשם שאתה קבעת
$result = mysql_query("SELECT * FROM 'news' ORDER BY 'id' DESC");
// הצגת הכתבות
while ($row=mysql_fetch_array($result))
{
echo ("<table width="600" cellpadding="2" cellspacing="2 border=1"> ");
echo ("<tr> ");
echo ("<td bgcolor="gray" width="100%">" . $row['subject'] . "</td> ");
echo ("</tr> ");
echo ("<td bgcolor="white" width="100%">" . $row['content'] . "</td> ");
echo ("</tr> ");
echo ("</table> ");
echo ("<br>");
}
?>