Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("includes/pdo.php");
- include("includes/verify.php");
- $date = date("Y-m-d H:i");
- if (!(verifyString($_POST['subject'], 5, 70)) || !(verifyString($_POST['message'], 5, 500)))
- $playout = "Invalid subject/message";
- else {
- $query = $pdo->prepare("INSERT INTO topics (subject, message, post_author, date, last_reply) VALUES (:subject, :message, :post_author, :date, :date)");
- $query->execute(array(':subject' => $_POST['subject'], ':message' => $_POST['message'], ':post_author' => $_COOKIE['user'], ':date' => $date));
- $playout = "Great Success!"
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement