while($r=mysql_fetch_array(mysql_query("SELECT * FROM news ORDER BY id DESC"))) {
$title=$r["title"];
$date=$r["date"];
$name=$r["name"];
$story=$r["story"];
BEcause you've wrapped up the mysql_query() call inside the while loop condition, it is creating a new query and a new result set every time round. Try this:
This way you will step through the results one by one rather than always getting the first line of a new result set. The error message you are getting usually indicates that your query is failing for some reason. The call to mysql_error() should print the MySQL error and tell you why it is failing.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)