Re: Postgresql

From: Date: Wed, 19 Jul 2000 14:19:33 +0000
Subject: Re: Postgresql
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1282@lists.php.net to get a copy of this message
Try: $row = pg_fetch_array($result, $i); $gtotal += $row["fieldname"]; ----- Original Message ----- From: Enrico Comini <algobit@algobit.com> To: ML-PHP-DB <php-db@lists.php.net> Sent: Wednesday, July 19, 2000 11:13 PM Subject: [PHP-DB] Postgresql > I use Posgresql With PHP And I have many of this situation > > $row = pg_fetch_row($result, $i); > $gtotal += $row[8]; > > How i spossible substitute the index of the array with the name of the > field. > This is a problem because if i modify the structure of a table I have to > modify all php page > > $row["namefield"] is not accepted > > Thanks, > Enrico > -------------------------------------- Yanto Suryono Department of Electronic Engineering University of Electro-Communications Tokyo, Japan -------------------------------------- http://www.fedu.uec.ac.jp/~yanto http://yanto.home.dhs.org yanto@fedu.uec.ac.jp ICQ : 16092022

« previous php.db (#1282) next »