> Just wanted to say thanks to both Brad and John for their help i got it > going with the following
No problem... > > function new_user() { > > $res = mysql_query("..."); > if ($res == FALSE) > { > $error = mysql_error(); > $_SESSION['mysqlerror'] = $error; > Header("Location: logerror.php?op=insert_error"); add in an exit(); here, for good measure. That way none of the following code is ever evaluated. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php