Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = "localhost";
- $dbname = "musexchange";
- $dbuser = "root";
- $dbpass = "";
- mysql_connect ($dbhost, $dbuser, $dbpass) or die("Could not connect: ".mysql_error());
- mysql_select_db ($dbname) or die(mysql_error());
- $firstname=htmlentities($_REQUEST['firstname']);
- $lastname=htmlentities($_REQUEST['lastname']);
- $comments=htmlentities($_REQUEST['comments']);
- mysql_query("INSERT INTO feedback (firstname,lastname,comments) VALUES('$firstname','$lastname',$comments);");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement