[ Ctrl + z ] Off

Dokumentasi Class OOP

OOP
OOP (Object Oriented Programming) adalah suatu metode pemrograman yang berorientasi kepada objek. Tujuan dari OOP diciptakan adalah untuk mempermudah pengembangan program dengan cara mengikuti model yang telah ada

Code Deskripsi
	
<?php
$no=0;
$data = new tatiyeNet();
$count  =  $data->select_Group(" * ", "package");
while ($ngi = $data->getObjectResults()){
  $id=$ngi->id;
  $id_trm=tatiyeNet::paramEncrypt($id);
?>
<p><?php echo $ngi->paket;?></p>
<?php }?>
   
Standard Query With Single Result

<?php
 $data   = tatiyeNet();
 $count  =  $data->select_where(" * ", " gallery ", " `num` = '1' ");
 while ($row = $data->getObjectResults()){
 echo $row->nama_file; 
}
?>

Standard Query WHERE Clause

<?php
  $data   = tatiyeNet();
  $count  =  $data->select_array(" * ", " gallery ", " `id` = '1' ");
  $En     = $data->getObjectResults();
  echo $En->nama_file; 
?>

Standard array

<?php
  $data   = tatiyeNet();
  $count  =  $data->select_Group(" * ", " gallery ", " num= '1'","ORDER BY id DESC");
  $PACK   = $data->getObjectResults();{
    echo $PACK->nama_file; 
  }
?>

Standard select Group

<?php
	$data = tatiyeNet();     
	$arr = array();                   
	$arr["user"] = $_POST['a4'];     
	$arr["pass"] = "net";
	$count=$data->insert(" gallery ", $arr); 
?>

Standard Insert

<?php
	$data = tatiyeNet();     
	$arr = array();                   
	$arr["user"] = $_POST['a4'];     
	$arr["pass"] = "net";
	$count=$data->update(" gallery ", $arr, " `id` = '1'","id_user='1'"); 
?>

Standard Update

<?php
	$data = tatiyeNet();     
    $count  =  $data->delete(" gallery ", " `id` = '1'","id_user='1'");
?>

Standard delete

© 2020 Designed by Tatiye.net