Comunitatea PHP Romania
 

 
pg_delete

pg_delete

(PHP 4 >= 4.3.0, PHP 5)

pg_delete --  Deletes records.

Description

mixed pg_delete ( resource connection, string table_name, array assoc_array [, int options])

pg_delete() deletes record condition specified by assoc_array which has field=>value. If option is specified, pg_convert() is applied to assoc_array with specified option.

Exemplu 1. pg_delete() example

<?php
    $db
= pg_connect('dbname=foo');
    
// This is safe, since $_POST is converted automatically
    
$res = pg_delete($db, 'post_log', $_POST);
    if (
$res) {
        echo
"POST data is deleted: $res\n";
    } else {
        echo
"User must have sent wrong inputs\n";
    }
?>

Avertisment

Această funcție este EXPERIMENTALĂ. Comportamentul acestei funcții, numele funcției, și orice altceva documentat despre această funcție ar putea fi schimbate fară un anunț prealabil, intr-o viitoare versiune PHP. V-am avertizat, deci folosiți această extensie pe riscul dv.

See also pg_convert().

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Credit Card Consolidation | Loans | Articles | Myspace Comments | Loans
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis