Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $statement = $pdo->prepare('INSERT INTO `a_temp_session` (`id`, `session_id`, `topTextOrLogo`, `topText`, `sideFirstTextOrLogo`, `sideFirstText`, `topLogo`, `sideFirstLogo`, `insideTextOrLogo`, `insideText`, `insideLogo`, `image`) VALUES (:id, :session_id, :topTextOrLogo, :topText, :sideFirstTextOrLogo, :sideFirstText, :topLogo, :sideFirstLogo, :insideTextOrLogo, :insideText, :insideLogo, :image)');
- $stmtValue = 'Tekst';
- $statement->bindValue(':session_id', $ses_id, PDO::PARAM_STR);
- $statement->bindValue(':topTextOrLogo', 0, PDO::PARAM_INT);
- $statement->bindValue(':topText', $stmtValue, PDO::PARAM_STR);
- $statement->bindValue(':sideFirstTextOrLogo', 0, PDO::PARAM_INT);
- $statement->bindValue(':sideFirstText', $stmtValue, PDO::PARAM_STR);
- $statement->bindValue(':topLogo', 0, PDO::PARAM_STR);
- $statement->bindValue(':sideFirstLogo', 0, PDO::PARAM_STR);
- $statement->bindValue(':insideTextOrLogo', 0, PDO::PARAM_INT);
- $statement->bindValue(':insideText', $stmtValue, PDO::PARAM_STR);
- $statement->bindValue(':insideLogo', 0, PDO::PARAM_STR);
- $statement->bindValue(':image', 0, PDO::PARAM_STR);
- $statement->execute();
- Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number in /public_html/index2.php:44 Stack trace: #0 /public_html/index2.php(44): PDOStatement->execute() #1 {main} thrown in /public_html/index2.php on line 44
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement