Menu

How To use this class

How to use This class



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.


Example of insert

$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->insert($table,$params,$values);

Example of Update

$obj= new nimaPDo;
$table='tableNAme';
$ceriteria="id='5'";
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->update($table,$params,$values,$ceriteria);

Example of select

$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select($table,$params,$values);

Example of select like

$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select_like($table,$params,$values);

Example of select One

$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select_one($table,$params,$values);

Example of select random

$obj= new nimaPDo;
$table='tableNAme';
$params=array('col1','col2','col3');
$values=array('val1','val2','val3');
$obj->select_rand($table,$params,$values);


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.