try adding "or die(mysql_error())" after the query to determine what the problem is, just saying that there is a problem does nobody any good...
so if you have mysql_query("blah")
add the "or die(mysql_error())" after it
so it looks like
mysql_query("blah") or die(mysql_error());