All pastes #408108 Raw Edit

Unnamed

public php v1 · immutable
#408108 ·published 2007-03-24 16:19 UTC
rendered paste body
<?phpinclude('db.php');//have a new page for posting your entrys to the db$title = $_POST['textfield']; //the stuff inside [] is the name of your textarea/text input$entry = $_POST['entry'];$date = $date = gmdate('d-F-Y h:i A'); //current date and time in gmt$query = mysql_query("INSERT INTO entry (Title, Content, Date) VALUES('$title', '$entry', $date) ")		or die("Error: " . mysql_error()); //change content, title and postcontent to the names of your database fields. ?>