Siemka, mam dość długie zapytanie, w które chciałbym wstawić 3 zmienne. Niestety wyrzuca mi błąd:
Fatal error: Call to a member function bind_param() on boolean
Już niezbyt mam pomysł co może być przyczyną.
$sql="insert into wp_posts (post_author, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, pinged, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, guid, `menu_order`, `post_type`, `post_mime_type`, `comment_count`)
values (1, current_timestamp(), current_timestamp(), ?, ?, '', 'publish', 'closed', 'closed', '', ?, '', '', current_timestamp(), current_timestamp(), '', 0, 'blabla', 0, 'ultimate-auction', '', 0)";
$stmt = $con->prepare($sql);
$stmt->bind_param('sss', $postContent, $title, $title2);
$stmt->execute();
$title oraz $title2 mają taką samą wartość, nie wiem czy robi to jakąś różnicę?