Commit ce127b00 by Roy Junedi Simamora

perubahan cek_comment

parent 6e1d3686
<?php
session_start();
require 'koneksi.php';
if(isset($_POST['kirim'])){
......@@ -7,7 +8,12 @@
$email = $_POST['email'];
$comment = $_POST['comment'];
}
$query = "INSERT INTO komentar VALUES('','$nama','$comment', '$email', '$hp')";
if(isset($_SESSION['is_logged_in'])){
$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"]));
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