Commit d2e983a8 by Roy Junedi Simamora

edit

parent 471acf08
...@@ -8,12 +8,7 @@ ...@@ -8,12 +8,7 @@
$email = $_POST['email']; $email = $_POST['email'];
$comment = $_POST['comment']; $comment = $_POST['comment'];
} }
if(isset($_SESSION['is_logged_in'])){ $query = "INSERT INTO komentar VALUES('','$nama','$comment', '$email', '$hp')";
$user = $_SESSION['member_id'];
}else{
$user = NULL;
}
$query = "INSERT INTO komentar VALUES('', '$user','$nama','$comment', '$email', '$hp')";
$input = mysqli_query($koneksi, $query) or die(mysqli_error($GLOBALS["___mysqli_ston"])); $input = mysqli_query($koneksi, $query) or die(mysqli_error($GLOBALS["___mysqli_ston"]));
if($input){ if($input){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment