Stupid but how do i check the EOF of the query.
is it something like
$result = mysql_query($sql); if(!$result) ??
Yes
if(!$result)
will work to determine if your query was successful or not.
Check out http://www.php.net/manual/en/function.mysql-query.php for details.
Hope it helps D.