Mine
public text v1 · immutable<?php include("conf.php");
mysqli_real_escape_string($connect, $_POST["title"]);
mysqli_real_escape_string($connect, $_POST["body"]);
$post = "INSERT INTO posts (title, body) VALUES ('".$_POST["title"]."', '".$_POST["body"]."')";
mysqli_query($connect, $post);
mysqli_insert_id($connect);
mysqli_close($connect);
?>