Im getting the following error:
Fatal error: Call to undefined function showerror() in updatedetails.php on line 200
From previous experience I know this does not mean that the error is on line 200, just a problem since the previous showerror() function. Ive have stared at the code for ages now and cannot find the problem-help please!
//Now see if this is an update of an insert
$custID = $_SESSION["authenticatedUser"];
$passform = $_POST["passForm"];
strip_tags($passform);
//Create a query to update the data
$query = "UPDATE Customer SET Firstnames = '$firstname', Surname = '$surname', UserName = '$userform', email = '$email', Password = '$passform', WHERE CustomerID = '$custID'";
// Run the query on the customer table
if (!(@ mysql_query ($query, $connection)))
showerror();
Im stumped
Fatal error: Call to undefined function showerror() in updatedetails.php on line 200
From previous experience I know this does not mean that the error is on line 200, just a problem since the previous showerror() function. Ive have stared at the code for ages now and cannot find the problem-help please!
//Now see if this is an update of an insert
$custID = $_SESSION["authenticatedUser"];
$passform = $_POST["passForm"];
strip_tags($passform);
//Create a query to update the data
$query = "UPDATE Customer SET Firstnames = '$firstname', Surname = '$surname', UserName = '$userform', email = '$email', Password = '$passform', WHERE CustomerID = '$custID'";
// Run the query on the customer table
if (!(@ mysql_query ($query, $connection)))
showerror();
Im stumped

Last edited: