RE: [PHP] passing mysql_error() out put to a different page?

From: Date: Tue, 15 Oct 2002 23:50:38 +0000
Subject: RE: [PHP] passing mysql_error() out put to a different page?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120084@lists.php.net to get a copy of this message
> 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...

« previous php.general (#120084) next »