* Thus wrote Chris Edwards ([EMAIL PROTECTED]): > Hi > > I'm just going to give the code and output. It should be self explanatory. > The array, $criteria, is having the issue. I don't know what it's doing. I > cannot seem to assign the value from the $data variable to the > $criteria[index] value. You will see some attempts to debug the situation > which leads me to more puzzlement.
This code can't be clearly evaluated, There are several things that can be wrong > > CODE: > > switch( $GLOBALS['currentTag'] ) > { > case "MINSTARTDATE" : echo $data;/*$GLOBALS['criteria']['minstartdate'] > = $data;*/break; > case "MAXSTARTDATE" : $GLOBALS['criteria']['maxstartdate'] = > "junk";/*$data;*/break; > case "MINSTAY" : $GLOBALS['criteria']['minstay'] = $data; break; > case "MAXSTAY" : $GLOBALS['criteria']['maxstay'] = $data; break; > case "MINRENT" : $GLOBALS['criteria']['minrent'] = $data; break; > case "MAXRENT" : $GLOBALS['criteria']['maxrent'] = $data; break; > case "RENTINC" : $GLOBALS['criteria']['rentinc'] = $data; break; > case "MINBEDS" : $GLOBALS['criteria']['minbeds'] = $data; break; > case "MAXBEDS" : $GLOBALS['criteria']['maxbeds'] = $data; break; > case "PROPCOUNT" : $GLOBALS['criteria']['propcount'] = $data; break; > default: break; > } global $currentTag may be: not assigned not all uppercase have a leading or trailing space not be one of the 'case' values $data is empty. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php