Login   Register  
PHP Classes
elePHPant
Icontem

File: Multipledelete.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ghali Ahmed  >  sqlExec  >  Multipledelete.php  >  Download  
File: Multipledelete.php
Role: Example script
Content type: text/plain
Description: How to easly build a Multiple delete query
Class: sqlExec
Compose and execute common types of MySQL queries
Author: By
Last change: Change description
Date: 6 years ago
Size: 423 bytes
 

Contents

Class file image Download
<?php 
//inclusion du fichier de configuration
include("db.conf.php") ;
//inclusion du fichier de la classe
include("sqlExec.class.php") ;
//instantiation de la classe
$db = new sqlExec() ;
//D√©finir la table
$db->setTable("utilisateurs") ;
//le tableau des identifiants des la lignes √  supprimer

$IdArray=array(6,3,5,4) ;
$update $db->multipleDelete($IdArray,"identifiant","int") ;

echo 
$update ;

?>