Hi, will someone tell me why I get the results I do? Thanks. the code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <HEAD> </HEAD><body><center><b><i> <font size=+3 color=red> Have you turned on the sytem?</font></i><p> <a href="startover.html"><img src="nobutton.png"></a> <a href="expiration.php"><img src="yesbutton.png"></a> </font></body></html> ------------------------------------------------------------------ the results: fetch_row(); $id = $row[0]; $expiry = (int) $row[1]; if ($expiry > 0) { $sql = "UPDATE `ctltbl` SET `expiry` = $expiry - 1 where `id` = $id"; if (mysqli_query($link, $sql)) { echo "."; } else { echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } header("location:sysnav.html"); } echo "We're sorry but your contract has expired. Contact us immediately at "; ?>
The code you have provided appears to be a PHP script that is querying a database and updating a record if the expiry is greater than 0. The script also checks if the update was successful and prints an error message if it failed. Finally, if the expiry is less than or equal to 0, the script prints a message that the contract has expired and provides a contact email address. The HTML code you have provided is not related to the PHP script, but it appears to be a simple webpage with a centered heading in red font, and two images that link to different web pages (startover.html and expiration.php). Without additional information about the context in which this code is being used, it is difficult to determine why you are getting the results you are seeing. If you are encountering an issue with this code, it may be helpful to provide more information about the specific problem you are experiencing.