Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = $_GET["Name"];
- $text = $_GET["text"];
- $today = getdate();
- $con = mysql_connect("localhost","root","");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("DB_Name", $con);
- mysql_query("INSERT INTO News(`name`,`text`,`date`) VALUES ('".$name."','".$text."','".$today."')");
- ?>
Add Comment
Please, Sign In to add comment