title: PHP MYSQL : insert dont work with prepared statement
body: <p>I've this code for insert row in my table :</p>
  
  <pre><code>$req = $bdd-&gt;prepare('INSERT INTO cours (id_region, id_type, nom, difficulte, duree1, duree2, remarque, nb_personne, note, publicateur)
  VALUES(:region, :type, :nom, :level, :duree1, :duree2, :remarque, :nbPerso, :note, :publicateur)');
  
  $rq = 'not yet';
  $note = 5;
  $prod = 'admin';
  
  $req-&gt;bindParam(':region', $region);
  $req-&gt;bindParam(':type', $type);
  $req-&gt;bindParam(':nom', $name);
  $req-&gt;bindParam(':level', $level);
  $req-&gt;bindParam(':duree1', $temps1);
  $req-&gt;bindParam(':duree2', $temps2);
  $req-&gt;bindParam(':remarque', $rq);
  $req-&gt;bindParam(':nbPerso', $nbPers);
  $req-&gt;bindParam(':note', $note);
  $req-&gt;bindParam(':publicateur', $prod);
  
  $req-&gt;execute() or die('Problem insert '.mysql_error());  
  </code></pre>
  
  <p>When I call the php page, I've <code>Problem insert</code> ,I cant's see the error in detail</p>
  
  <p>before to call prepared statement I've add this code for tracing error :</p>
  
  <pre><code>ini_set('display_errors', 1);
  ini_set('log_errors', 1);
  ini_set('error_log', 'C:wamp/www/Cours/php/log_error_php.txt');
  error_reporting(E_ERROR);
  </code></pre>
  
  <p>in php.ini all my variable for showing error is equals to 'on'</p>
  
  <p>where is error in prepared statement ?</p>