fork download
  1. <?php
  2.  
  3. $query = $this->db->prepare("INSERT INTO feedbackUsers (idUser,typeQuestion,questionDate,)
  4. VALUES (:idUser, :typeQuestion, :questionDate)");
  5.  
  6. $query->bindValue(":idUser","136", PDO::PARAM_STR);
  7. $query->bindValue(":typeQuestion","1", PDO::PARAM_STR);
  8. $query->bindValue(":questionDate","OLA", PDO::PARAM_STR);
  9.  
  10. $result = $query->execute();
  11.  
  12.  
  13. ?>
Runtime error #stdin #stdout #stderr 0.02s 52472KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Using $this when not in object context in /home/McNkAE/prog.php on line 3