The problem is that php treats the associative arrays differently than the query. You can query on Mixed case when your table is all lowercase as that is what happens when you create the table. Since the postrgres query lowercases your query this isn't a problem, but php's associative arrays do not automatically lowercase when not in quotes, therefore its actions are not the same as its query actions and code that could work in one spot will not work in the other. That is the problem i was pointing out. Patrick Kish -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]