Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- $con = mysql_connect("mysql2.000webhost.com","a6620699_oils","*****");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("a6620699_oils", $con);
- $sql="INSERT INTO Posts (Show, Picture, Name, Date, Poster, Text) VALUES('$_POST[Show]','$_POST[Picture]','$_POST[Name]','$_POST[Date]','$_POST[Poster]','$_POST[Text]')";
- if (!mysql_query($sql,$con))
- {
- die('Error: ' . mysql_error());
- }
- echo "1 record added";
- mysql_close($con)
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement