in this class we have 7 functions as ( Insert , select , select one row , select with Like statement , Delete , Update , Select random ) with just one line coding .
the main thing is very good is that , i create this class with Pdo connection that has a good security for your web site.
$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->insert($table,$params,$values);
$obj= new nimaPDo;
$table='tableNAme';
$ceriteria="id='5'";
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->update($table,$params,$values,$ceriteria);
$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select($table,$params,$values);
$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select_like($table,$params,$values);
$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select_one($table,$params,$values);
$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select_rand($table,$params,$values);