Dostaje taki komunikat:
Cytat
string(93) "INSERT INTO tur_comments (nid,text,author,authorPage) VALUES (:nid,:text,:author,:authorPage)"


Fatal error: Call to a member function bindValue() on a non-object in /var/www/Tur/core/appModel.php on line 120

PHP:
  1. <?php
  2. $stmt = $this->db->prepare('INSERT INTO '.$this->configStorer->dbPrefix.$this->table.' ('.implode(',',$this->fields).') VALUES ('.implode(',',$this->fieldsReplace).')');
  3.  
  4. for($i = 0; $i < sizeof($data);$i++){
  5. $stmt->bindValue($this->fieldsReplace[$i],$data[$i]);
  6. }
  7.  
  8. $stmt->execute();
  9.  
  10. $stmt->closeCursor();
  11. ?>


Problem leżał w tym, że zamiast Page (tak było w modelu) w bazie miałem Link i cały skrypt wyłożył się przez głupotę winksmiley.jpg