|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-04-02 17:27 UTC] dranor at dracon dot net
  [2001-04-02 17:49 UTC] dranor at dracon dot net
  [2001-05-22 07:05 UTC] swm@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 13:00:01 2025 UTC | 
The scenario is described here: mydb=> CREATE TABLE test ( U_Name char(50), U_Pass char(16) ); mydb=> INSERT INTO test values ('Bob', 'password'); query.php: <? $conn = pg_connect("dbname=mydb"); $result = pg_exec($conn, "select U_Name, U_Pass from test") $arr = pg_fetch_array($result, 0); echo "U_Name: " + $arr[U_Name] + " U_Pass: " + $arr[U_Pass] + "<BR>"; echo "u_name: " + $arr[u_name] + " u_pass: " + $arr[u_pass] + "<BR>"; ?> results that are printed:U_Name: U_Pass: u_name: Bob u_pass: password ( arr[0] = Bob, arr[1] = password) U_Name is not being automatically lowercased when using associative arrays. As of v6.1 PostgreSQL lowercases all table names as well as all columns. So searching on mixed case or uppercase names will not work unless they are enclosed in quotes..