Also if you dont want ot to break you need to add the "@" operator in front
Mike *********** REPLY SEPARATOR *********** On 04/01/2003 at 6:47 PM Adam Plocher wrote: >This encoded message has been converted to an attachment. > >How about something like this.. > >function runquery($query) >{ > $query = mysql_query($query); > if (mysql_error()) > { > echo "<div style=\"color:red\">MySQL Error: ". mysql_error() >."</div>\n"; > exit(1); > } > > return $query; >} > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php