|
-
Jan 31st, 2011, 08:54 AM
#6
Re: PHP Help
1) Yes you are correct, you have to rewind the cursor back to the beginning (I used the term rewind on purpose...hint.)
2) Even if you managed to rewind the cursor, it wouldn't matter as the code currently does not have the option tag in a loop.
Here's how I'd tackle it - get the data into an array... outside of any loops... then loop through the array, do the first printing... then do a second loop through it for your drop down. But the key is to call fetcharray once. I'd probably then do the loops as a foreach instead of a while.
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|