array question

From: Date: Fri, 21 Jul 2000 18:14:12 +0000
Subject: array question
Groups: php.db 
Request: Send a blank email to php-db+get-1407@lists.php.net to get a copy of this message
Hello, If I want to select all elements from Postgres array-field using PHP, can I do it without fetching each element seperately? eg; tb1 --------------- col1 {"I","have","no","problem"} "Select col1[1:4] from tb1"; $row= pg_fetch_array(...); echo $row[col1[1]]; <----- didn't work and I am hoping to avoid "select col1[1], col2[2]..." Thanks. - Bernie

« previous php.db (#1407) next »