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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php