Jump to content

[SOLVED] Parse error syntax error unexpected $end in line 35


jeff5656

Recommended Posts

I want to change all records to have a signoff_status of "s".  Then I want to change one record with a particular id to "a".  However, I get an error with the following code:  Any ideas?

<?php
require('secure.php'); 


include "connectdb.php";


$sql = "UPDATE staff SET signoff_status = 's'";


if (isset($sql) && !empty($sql)) {
echo "<!--" . $sql . "-->";
$result = mysql_query($sql) or die ("Invalid query: " . mysql_error());



$sql = "UPDATE staff SET
signoff_status = 'a'

WHERE id_incr = '" . $_GET['id'] . "'";
if (isset($sql) && !empty($sql)) {
echo "<!--" . $sql . "-->";
$result = mysql_query($sql) or die ("Invalid query: " . mysql_error());


?>
<p>
Done
<?php
}
header("Location: newstaff.php");

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.