I have a multi row form. When i do the insertion its not inserting the values i choose, instead its adding in different order. Can u pls help me.
Here is my code
PHP Code:
<?php
require_once "config/functions.inc.php";
//
if(isset($_POST['Submit']))
{
if ($_POST['mobileno'])
{
extract($_POST) ;
$n = count($mobileno);
$i = 0;
while ($i < $n)
{
if ($mobileno[$i]== ""){
$i++;
}else{
$sql = "insert into transactions set
executive_name='$executive',
mobile_no='$mobileno[$i]',
Check='$check[$i]',
DEP='$deposit[$i]',
PL='$pl[$i]',
NA='$na[$i]',
";