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

From: Date: Tue, 15 Oct 2002 23:53:54 +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-120082@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 function new_user() { $res = mysql_query("..."); if ($res == FALSE) { $error = mysql_error(); $_SESSION['mysqlerror'] = $error; Header("Location: logerror.php?op=insert_error"); } else { } } for some reason it didn't like to put the out put of mysql_error into a session var but as soon as I changed it to a "normal" var it works great thanks again for you help on this :) Cheers Peter

« previous php.general (#120082) next »