Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("../inc/db/connect.php");
- $title = $_POST['post_title'];
- $content = $_POST['post_content'];
- $category = $_POST['post_category'];
- $db->query("INSERT INTO my_posts (post_title, post_content, fk_post_category) VALUES ('{$title}', '{$content}', '{$category}')");
- header("Location: add-post.php?msg=1");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement