Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username="423423452";
- $password="6457458";
- $database="7456345343";
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $title = mysql_real_escape_string($_POST['title']);
- $description = mysql_real_escape_string($_POST['description']);
- if (!empty($title)) {
- $query = "INSERT INTO likes VALUES ('','$title','$description','')";
- mysql_query($query);
- mysql_close();
- } else {echo "Error: Title cannot be blank";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement