★ wanayoo — archive 1999 http://www.php.net/manual/fr/function.pg-cmdtuples.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to PostgreSQL
Quick Reference
English version of this pageGerman version of this pageJapanese version of this pageItalian version of this pageHungarian version of this page
PostgreSQL
* pg_Close
* pg_cmdTuples
* pg_Connect
* pg_DBname
* pg_ErrorMessage
* pg_Exec
* pg_Fetch_Array
* pg_Fetch_Object
* pg_Fetch_Row
* pg_FieldIsNull
* pg_FieldName
* pg_FieldNum
* pg_FieldPrtLen
* pg_FieldSize
* pg_FieldType
* pg_FreeResult
* pg_GetLastOid
* pg_Host
* pg_loclose
* pg_locreate
* pg_loopen
* pg_loread
* pg_loreadall
* pg_lounlink
* pg_lowrite
* pg_NumFields
* pg_NumRows
* pg_Options
* pg_pConnect
* pg_Port
* pg_Result
* pg_tty
Manual: pg_cmdTuples
View the source code for this pageSearch the site



Previous page
 pg_Close
 Updated
Sun, 06 Aug 2000
pg_Connect 
Next page


pg_cmdTuples

(unknown)

pg_cmdTuples -- Retourne le nombre de tuples affectés.

Description

int pg_cmdtuples (int result_id)

pg_cmdTuples() retourne le nombre de tuples (instances) affectés par les requêtes INSERT, UPDATE, et DELETE. Si aucun tuple n'a été affecté, la fonction retournera 0.

Exemple 1. pg_cmdtuples


<?php
$result = pg_exec($conn, "INSERT INTO verlag VALUES ('Autor')");
$cmdtuples = pg_cmdtuples($result);
echo $cmdtuples . " <- tuples modifiés.";
?>
      


User Contributed Notes: pg_cmdTuples


mlemos@acm.org
13-Mar-2000 12:39
If for some reason the function is not able to determine the number of affected rows, it will still return 0 rows affected regardless if any tupples were changed.


 About Notes


Previous page
 pg_Close
 Updated
Sun, 06 Aug 2000
pg_Connect 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.