Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $user = "root";
- $password = "";
- $database = "film";
- $titolo = $_REQUEST['titolo'];
- $db = mysql_connect($host,$user,$password) or die ("Impossibile connettersi a MySQL"); //fino a qui tutto va
- mysql_select_db($database, $db) or die ("Impossibile selezionare il Database");
- $query ="INSERT INTO titolo (titolo) VALUES ('titolo')";
- mysql_query($query,$db) or die ("Impossibile inserire il Post");
- mysql_close($db);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement