how to insert multiple rows in table in php
<p>I want to insert more upto 50 rows by single query using this code, how can be it possible either by using array or using loop </p>

<p>Thanks in Advance</p>

<pre><code>&lt;?php


require 'conn/Session.php';

require 'conn/MySQL.php';

require_once("includes/generalFunction.php");

require_once("classes/class.SiteManager.php");

$dbcon =  new MySQL();

$siteObj =  new SiteManager();

require 'conn/checkSession.php';

if($_POST['submit']) 
{


            $content=array("student_id"=&gt;$_POST['student_id'],"parent_id"=&gt;$_POST['parent_id'],"student_name"=&gt;$_POST['student_name'],"s_status"=&gt;$_POST['s_status'],"class"=&gt;$_POST['class'],"section"=&gt;$_POST['section']);

            $dbcon-&gt;insert_query("tbl_attandence",$content);
            $mess="Record created successfully.";
            $url="all_attandence.php?mess=".base64_encode($mess);
            redirectPage($url);

}
?&gt;
</code></pre>