prepare("INSERT INTO forums (post_id, poster_id, section, type, title, content, image) VALUES (:pid, :uid, :sbj, :typ, :ttl, :ctt, :img)"); $stmt->bindParam(":pid", $pid); $stmt->bindParam(":uid", $uid); $stmt->bindParam(":sbj", $sbj); $stmt->bindParam(":typ", $typ); $stmt->bindParam(":ttl", $ttl); $stmt->bindParam(":ctt", $ctt); $stmt->bindParam(":img", $img); $stmt->execute(); if(!$stmt){ msg("Error fooing posts :("); header("Location: /forum"); } } msg("Success fooing posts :D"); header("Location: /forum") ?>