note 11886 added to function.mysql-fetch-array.php

From: Date: Mon, 12 Mar 2001 06:26:09 +0000
Subject: note 11886 added to function.mysql-fetch-array.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12287@lists.php.net to get a copy of this message
Hi I'm not sure if this is correct behavior or not but thought I would point it out none the less. If you use field names to access a fetched array index then I have found the field name is case sensitive. ie:<br> $row = mysql_fetch_array( $result );<br> print( $row['Id'] );<br> The field name Id works if the corresponding database field is Id however the above query failed for me when I had written Id as id. Hope that made sense to everyone. <br> Justin http://www.php.net/manual/en/function.mysql-fetch-array.php

« previous php.notes (#12287) next »