You are on page 1of 1

<?

php
$title = $_POST['title'];
$body = $_POST['body'];
$query = "INSERT INTO 'posts' SET
'title' = "{$title}";
'body' = "{$body}"";
mysql_query($query);

You might also like