mysql_fetch_array and row referencing under 4.0.4pl1

From: Date: Tue, 13 Feb 2001 04:11:21 +0000
Subject: mysql_fetch_array and row referencing under 4.0.4pl1
Groups: php.general 
Request: Send a blank email to php-general+get-39329@lists.php.net to get a copy of this message
Have I lost something somewhere? I have code which runs under PHP3.0.15, and PHP4.0.2 which references the result of a $row = mysql_fetch_array($result_of_query); by doing things like: $row["this_is_a_field_name"] Seems simple, right? Well - I compiled a new copy of Apache 1.3.17, pushed PHP up to 4.0.4pl1, and upgraded mysql to the new stable version at the same time... Now the above code doesnt work. But if I do a: $row[this_is_a_field_name] Then the code does work. Have I messed up something in the PHP configuration that doesnt allow these quoted identifiers anymore? Or is this just a new (less-than-compatible) upgrade to PHP that I've missed reading about?? Heeeeeeeeeeeeeeeeeelp me ... I dont want to have to rebuild all my sites just because of these stupid quotes....

« previous php.general (#39329) next »