Array Question

From: Date: Tue, 26 Mar 2002 17:51:00 +0000
Subject: Array Question
Groups: php.general 
Request: Send a blank email to php-general+get-90229@lists.php.net to get a copy of this message
I have some multiple select boxes in a form ie <SELECT name="state[]" multiple size=5 style="width:360;"> <option value="all">all Regions </option> <option value="16">Region19 </option> <option value="14">Region14</option> <option value="5">Region15</option> these then get passed and I want to use them in mysql query blah blah WHERE (t_state_id_state = $state[0]) Whats the best way of finding out how many items are in my array ? And how can I step through the ones the exist ? And can I only use LIKE % when my value is all ? thanks

« previous php.general (#90229) next »