title: Loop over an insert Query in PHP
body: <p>I am having trouble with insert the same value N time In SQL via PHP script.
  I have this vslue?</p>
  
  <pre><code>Table Info  column (ID,Name, LastName,)
  Valus ('',Alain,Alian);
  </code></pre>
  
  <p>Whata i want to do is insert this value in the same table 10 Times Using a While loop for E.G
  Or something like that
  any idea?.</p>
  
  <pre><code>&lt;?php
      $i=1;
      While ($i&lt;= 5)      
      {
         $sql="INSERT INTO arivage
            (ID_Ship,Date_ariv,Date_achat,prov_id,Sph,cyl,Prod_type,Pord_color)
            VALUES
            ('','$date','$date1','$prov_id','$sph','$cyl','$Prod_type','$Pord_color')";
         $i++;
      }
  ?&gt;
  </code></pre>