Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E338864FC83 for ; Fri, 2 Jan 2009 14:28:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 92121-10 for ; Fri, 2 Jan 2009 14:28:18 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mail.postgresql.org (Postfix) with ESMTP id 125CC64FC2A for ; Fri, 2 Jan 2009 14:28:17 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id j4so3569553wah.19 for ; Fri, 02 Jan 2009 10:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ohG2/EGhxTLRd4wzCgAFAal84N1/mL7Af5W7H9JP0Gw=; b=NMZFLe5pfoC79CrdFwm0wiIpt3iBqEJY3rbrJqlqWUC95fzRDzuFPSnLy7lTTBG5mI E+dO2YkygHVu8q+XJOpjtz0G5aY3NmaOgRY3HLnjsFXjjC06oVABJwfxgHO+44s90onM vowvfrAvXxX12XBAe84zGqbrf/4kKnzMc4LPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KJTmK6nLkoK4B5aDqM14uqr0vHLm8n09WaquJH1nLV8XJOfkMU1pOek20PVuDNkRmZ 6JozTodaNHVwWFrROajXh5vfmn7nVSuqBejtSoS5XAFM4fnITTVUBi3BcKoFUjIefdly 6UiE0eqyYjdTMmaP3VTsesnHX/JpRgZ+42oDo= Received: by 10.114.47.12 with SMTP id u12mr11935658wau.147.1230920895953; Fri, 02 Jan 2009 10:28:15 -0800 (PST) Received: by 10.114.135.4 with HTTP; Fri, 2 Jan 2009 10:28:15 -0800 (PST) Message-ID: Date: Fri, 2 Jan 2009 11:28:15 -0700 From: "Scott Marlowe" To: ioguix@free.fr Subject: Re: access data in php Cc: "Marc Fromm" , "pgsql-admin@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/4 X-Sequence-Number: 31051 On Fri, Jan 2, 2009 at 11:09 AM, wrote: > pg_fetch_assoc behave like pg_fetch_array: it increments the internal > pointer to the current result. > So if you call it once, then pg_fetch_array will return the 2nd result in > the result set. Wow, I'm so used to seeing $rows = pg_num_rows() that that's what I saw up there.