prepare("INSERT INTO blogs (author, title, content, description, category, date) VALUES (?, ?, ?, ?, ?, ?)"); $stmt->bind_param("isssss", $user_id, $title, $content, $description, $category, $date); $stmt->execute(); header("Location: blog.php");