All pastes #408072 Raw Edit

Stuff

public php v1 · immutable
#408072 ·published 2007-03-24 15:49 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'];$query = mysql_query("INSERT INTO content (Title, Postcontent, Date, Time) VALUES('$title', '$entry') ")		or die("Error: " . mysql_error()); //change content, title and postcontent to the names of your database fields. ?>