It's kind of hard to give advice when you don't even have the line where you ran mysql_fetch_row's variable $result...
That's vital information in helping you out, as well as any other variables which assist in the function.
Ok, here's the page code:
<?php require("main.php"); ?>My Dynamic Page
whoops, tried to delete the thread...i found the problem, one of the other functions had the wrong table name