RE: [PHP] Build Categories based on an static Array

2009-11-09 Thread Daevid Vincent
s $k => $v) $tmp[$v] = $v; return $tmp; } /** * Returns the first non-empty value in the array, * Works much like mySQL's function, * except this is an array passed in rather than a list of parameters. * * @access public * @return mixed * @paramarray $myArray *

[PHP] Build Categories based on an static Array

2009-11-09 Thread Don Wieland
I am trying to build a SELECT MENU (with categories). I cant seem to get the syntax correct. Little help: // Get Areas values for MENU $AreasList = ""; $queryR = array(0 => 'Domestic','International','Special'); while($rowR = $queryR->fetch_assoc()) {