I get this error: PHP Parse error: syntax error, unexpected T_VARIABLE on line 47
The 47th line is:
$queryb = "UPDATE `situation` SET `status`='" . $stats . "', `time`='" . $time . "', `name`='" . $name . "', `notes`='" . $notes . "'";
I just don't get it. Maybe script error or syntax error?
<?php
function lanjut($c) {
$submitdata = "success";
if ($c = "message") {
$time = $_REQUEST['time'];
$name = $_REQUEST['name'];
$body = $_REQUEST['body'];
$con = mysqli_connect("this,is,already,true");
$querya = "INSERT INTO `message` (`name`, `time`, `body`) VALUES ('" . $name . "', '" . $time . "', '" . $body . "')";
mysqli_query($con,$query);
mysqli_close($con);
} elseif ($c = "setting") {
$time = $_REQUEST['time'];
$name = $_REQUEST['name'];
$notes = $_REQUEST['notes'];
$con = mysqli_connect("this,is,already,true");
$stats = $_REQUEST['status']
$queryb = "UPDATE `situation` SET `status`='" . $stats . "', `time`='" . $time . "', `name`='" . $name . "', `notes`='" . $notes . "'";
mysqli_query($con,$query);
mysqli_close($con);
};
};
?>