chupinette 1 Newbie Poster

Hello all! :)
I dont know if this is the right forum..Here's part of my code:
im using php to generate a wml page. It works fine. I want to populate a checkbox using data from mysql db.
rand_keys() : store the ids in random order
$row(): stores the ids fetched from mysql db
$x = $rand_keys[5];

print "<setvar name='ans1' value=$x . ">" "; //here i should get the value at position 5 but i always get 1

	print "<select multiple='true'>"; 
	
	print "<option value =".$row[$rand_keys[0]].">" // here i tried to display the value from the array but it does not seem to work

Can anyone guide me on how to do this part?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.