\n"; } else { header("Content-type: $mime_type; charset=utf-8"); } $name = $_POST['name']; $comment = $_POST['comment']; $submit = $_POST['submit']; mysql_connect("localhost","3rcamera","3rc@m3ra$2013"); mysql_select_db("3rcamera"); if($submit){ if($name&&$comment){ $insert = mysql_query("INSERT INTO comments (name,comment) VALUES ('name','comment')"); } else{ echo "Please fill out all fields"; } } ?>
|
|