help with an array if its possible!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
	
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux