title: php bind_param in prepeared statments make the program stops with no error or warnings
body: <p>I wrote this prepared statment to send data from php to my localhost</p>
  <pre><code>         $stmt = $conn-&gt;prepare(&quot;INSERT INTO info VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)&quot;);
            if ( false===$stmt ) {echo '&lt;script type=&quot;text/javascript&quot;&gt;alert(&quot;false prepeared statment '.htmlspecialchars($conn-&gt;error).'&quot;);&lt;/script&gt;';}
           try{
           $rc = $stmt-&gt;bind_param(&quot;ssssssssssssssssssss&quot;, 'f', '$name1', '$name2', '$name3', '$lastname', '$mother', '$bornplace',
              '$phone', '$empTitle', '$school', '$lastDegree', '$lastSpeciality', '$lastUniversity', '$lastCollege',
               '$subject', '$nextSpeciality', '$nextSubSpeciality', '$nextDepartment', '$nextCollege', '$nextUniversity');
           }catch(Exception  $er){
               echo('err: '.$er-&gt;getMessage());
           }
  
            $rc = $stmt-&gt;execute();
            if ( false===$rc ) {echo '&lt;script type=&quot;text/javascript&quot;&gt;alert(&quot;false excute '.htmlspecialchars($stmt-&gt;error).'&quot;);&lt;/script&gt;';}
            $stmt-&gt;close();
            $conn-&gt;close();
  </code></pre>
  <p>When I run the program, the execution &quot;freeze&quot; when it reach the bind_param line, with no error message or warning. When I comment the bind_param line, the program execution dosen't &quot;freeze&quot; and contincue to the next lines, and gives me the error message &quot;No data supplied for parameters in prepared statement&quot;.
  Notice I made the variable names (in the bind_param) as a string to make sure the problem is not in the value of the variables. And the try catch statement didn't work either.
  Moreover, when I put some error in the (prepare) line, it shows me the error. But when I put error in (bind_param) line, it just keep freezing!
  Notice the localhost showing all the errors in all lines normally. But when it comes to this bind_param it doesn't work as expected. I tried a different table with 3 variables, and there were no problem!</p>