PHP Classes

File: Multipledelete.php

Recommend this page to a friend!
  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: 14 years ago
Size: 423 bytes


Class file image Download
//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") ;

$update ;


For more information send a message to info at phpclasses dot org.