prepare("INSERT INTO news(content,newsdate) VALUES('$details', NOW())"); // process the query // if successful, redirect to list of existing records if ($sql->execute()) { $message = "News Posted Succesfully"; } } ?>