/*for example we have 4 record in database we want to update them we put them in array then run the
class
*/
<?php
$record[1]='name';
$record[2]='tell';
$record[3]='group_id';
$data[1]=$_POST['name'];
$data[2]=$_POST['tell'];
$data[3]=$_POST['group_id'];
$id=$_POST['id'];//record id in data base
$table=$_POST['table'];//our table name in database
$sql=new sql;
$sql->edit($table,'3',$record,$data,$id);
?>