<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pgsql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.pg-num-rows.php',
    1 => 'pg_num_rows',
    2 => 'Restituiscein numero di tuple',
  ),
  'up' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.pg-num-fields.php',
    1 => 'pg_num_fields',
  ),
  'next' => 
  array (
    0 => 'function.pg-options.php',
    1 => 'pg_options',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/pgsql/functions/pg-num-rows.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pg-num-rows" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">pg_num_rows</h1> 
    <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pg_num_rows</span> &mdash; <span class="dc-title">Restituiscein numero di tuple</span></p>

   </div>
   <div class="refsect1 unknown-403" id="refsect1-function.pg-num-rows-unknown-403">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>pg_num_rows</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$risultato</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>pg_num_rows()</strong></span> restituisce il numero di tuple (righe) in un
     <code class="parameter">risultato</code> PostgreSQL.
     <code class="parameter">risultato</code> è una risorsa risultato ottenuta
     attraverso <span class="function"><a href="function.pg-query.php" class="function">pg_query()</a></span>. Restituisce -1 in 
     caso di errore.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      Utilizzare <span class="function"><a href="function.pg-affected-rows.php" class="function">pg_affected_rows()</a></span> per ottenere il numero di righe
      modificate da query INSERT, UPDATE and DELETE.
     </p>
    </p></blockquote>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      Questa funzione si chiamava <code class="literal">pg_numrows()</code>.
     </p>
    </p></blockquote>
    <p class="para">
     Vedere anche <span class="function"><a href="function.pg-num-fields.php" class="function">pg_num_fields()</a></span> e
     <span class="function"><a href="function.pg-affected-rows.php" class="function">pg_affected_rows()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>