Insert multiple rows using for loop
<p>I want to insert multiple rows into a table using for loop, but having some errors. What is wrong in this code?</p>

<pre><code>$sql=mysql_query("INSERT INTO pl_tbl (p_id,po_name,po_val) VALUES

            for ($i=0;$i&lt;$count;$i++) 
            {
                ('$id','$data['data']['name_'.$i]','$data['data']['val_'.$i]')");
            } 
</code></pre>