confused big time

From: Date: Wed, 07 Apr 2004 00:06:52 +0000
Subject: confused big time
Groups: php.general 
Request: Send a blank email to php-general+get-182569@lists.php.net to get a copy of this message
"two things i would recommend before disecting your code. 1. write readable queries. GOOD: $sql = " SELECT name , age , height , etc FROM user WHERE name = '$name' AND height = '5'"; 2. always put single quotes around array keys. $array['key']" 1. how were those queries unreadable?? and 2. whenever i put '' around the array keys in multi dimensional arrays in a query i get a parse error of trying to use undefined keys or it doesnt expand the array all the way... and 3. when i used the {} on the arrays and the '' around the keys all i got was parse error because of the '' around them...

« previous php.general (#182569) next »