Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 07-11-2006, 04:20 AM   #1
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default db populated drop down menu

I am trying to make a drop down menu that is populated by the contents of a table. I know it's possible, I've seen hundreds of examples. But for some reason, as soon as i put the php code after the echo '<select name="name">'; php quits. I tested it and tested it, and it just quits. I typed: echo 'name'; after the command above, and name didn't show up on the page. When I typed: echo 'name'; before the command, name showed up. Any ideas?

Edit: Basically what I've found out is that no PHP gets parsed if it is between <select></select> tags. Does anyone know why?

Edit: I figured it out. Post here if you want to know how(and what I was doing wrong).
__________________
Storage Sheds
Lost Forum

Last edited 07-11-2006 at 09:46 AM.
jumpenjuhosaphat is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 07-11-2006, 02:22 PM   #2
HouseOfRock
Member
 
HouseOfRock's Avatar
 
Join Date: Jan 2006
Location: Massachusetts
Posts: 136
HouseOfRock will become famous soon enough
Default Re: db populated drop down menu

Were you having an issue with quotation marks, or was it deeper than that? That would have been my first guess.
__________________
Visit my new and improved humor site: It's Just Humor
Or check out the newest source for HQ celebrity images: It's Just Babes
HouseOfRock is offline  
Old 07-11-2006, 06:33 PM   #3
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: db populated drop down menu

no, the quotation was fine, I was issueing commands within a <select></select> tag, and the only thing that shows up in a select block is <option/> tags. So once I figured out that when I echoed within that it wouldn't show up anyway, then I moved past this problem, I'm getting ready to get started again, so I'll be here posting within the hour with another problem, I'm sure.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 07-12-2006, 04:20 AM   #4
rohan2kool
Member
 
rohan2kool's Avatar
 
Join Date: Dec 2005
Posts: 132
rohan2kool will become famous soon enough
Default Re: db populated drop down menu

i know it sounds silly, but did you put the <? ... ?> marks??
__________________
Eat healthy, Stay Fit, Die Anyway.
--==--
If there is a man who knows everything about women, there is a Windows distribution without bugs.
rohan2kool is offline  
Old 07-12-2006, 05:29 AM   #5
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: db populated drop down menu

No, it doesn't sound silly, I just was trying to test the code using echo, but within the <select></select> tags, anything other than <option> tags is ignored, that is where my problem was at.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 07-12-2006, 01:16 PM   #6
HouseOfRock
Member
 
HouseOfRock's Avatar
 
Join Date: Jan 2006
Location: Massachusetts
Posts: 136
HouseOfRock will become famous soon enough
Default Re: db populated drop down menu

So the issue was HTML and not PHP related. No worries.
__________________
Visit my new and improved humor site: It's Just Humor
Or check out the newest source for HQ celebrity images: It's Just Babes
HouseOfRock is offline  
Old 07-12-2006, 06:30 PM   #7
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: db populated drop down menu

Yeah, I thought originally it was PHP related, that's why I put it here.
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 08-05-2006, 11:23 PM   #8
thedark
Junior Member
 
thedark's Avatar
 
Join Date: Aug 2006
Posts: 18
thedark will become famous soon enough
Default Re: db populated drop down menu

To better separate code from design, i strongly recommend using smarty templates, first you will find it lose of time, but when you will build great websites this will be a big advantage.
thedark is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
huge google searchrank drop laag Google 5 12-20-2006 03:20 AM
Sub Menu Link Trouble okinawa Programming 0 11-21-2006 01:02 PM
Most Expensive Menu Items in the World proudcollector General Talk 7 11-15-2006 07:44 PM
listing on link market wont "drop" midlandi Help and Support 3 11-08-2006 08:00 PM
Drop off in Google listing - reason unknown Chart Music Google 0 10-14-2006 04:51 PM


All times are GMT. The time now is 09:30 PM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.