I echoed the query on line 5 of the code that I posted.
and what does it look like? Not the echo command, but the output it gives?
One way to use mysql_error:
if (mysql_query($query)){
echo "Query submitted.<BR>";
}
else{
echo "Mysql error: ".mysql_error()."<BR>";
}
another one: replace the above with
mysql_query($query) or die("Mysql error: ".mysql_error());
echo "Query submitted.<BR>";
which basically would have the same effect.
Cheers,
xblue