help with an array if its possible!

From: Date: Wed, 22 Jun 2011 22:43:13 +0000
Subject: help with an array if its possible!
Groups: php.general 
Request: Send a blank email to php-general+get-313666@lists.php.net to get a copy of this message
Hi Gang! i have 2 assoc arrays from 2 querys, first one is page categorys it consists of: id name second is pages name cat_id now, i am using smarty, so i pass arrays into the view. this i would like to pass to the view and display within a html select element. <select id="name"> <option value="CAT_ID">CAT NAME <option disabled="disabled">PAGE NAME ASSOCIATED TO THE CAT NAME</option> </option> </select> and i cannot think of how i can structure an array to pass in to achieve this and/or is it even possible :-/. i hope this makes sense. i'm truly stuck! kind regards Adam Preece

« previous php.general (#313666) next »