PHP saving zero (0) value to MySQL error when using for
<p>I have a form and I have many values. When I am trying the save these values to the MySQL, it doesn't save the zero values which are coming from form.
Here is my codes.</p>

<pre><code>for($i=0;$i&lt;count($cevap_deger);$i++){
  $cevapkontrol = trim($cevap_deger[$i]);
  if(!empty($cevapkontrol)){
    $sorgu = mysql_query("insert into CRM9001(CRM9107,CRM9102,CRM9103,CRM9105,CRM9109,CRM9108) values ('".$cevap_deger[$i]."','".$sinav_id[$i]."','".$bolum_id[$i]."','".$soru_id[$i]."','".$birey_id[$i]."','".$kullanici_id[$i]."') ");
    header("Refresh: 0; url=dashboard.php");
  }
}
</code></pre>

<p>It saves other values but only 0 it doesn't save. I tried this also;</p>

<pre><code>for($i=0;$i&lt;=count($cevap_deger);$i++){
</code></pre>

<p>If you help me I will be very glad. </p>
