skygremlin Posted November 12, 2013 Share Posted November 12, 2013 I've been looking at this for a bit and can't seem to figure what's going on? I have used this code before and never had this issue.... I'm tryig to populate a dropdown menu from a MySql DB. The dropdown menu seems to skip the first array... I attached a screenshot that hopefully show's what I'm talking about.. any thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/283848-php-drop-down-menu/ Share on other sites More sharing options...
mac_gyver Posted November 12, 2013 Share Posted November 12, 2013 your <select tag is missing the closing > so everything up to the first > is part of the <select tag. Quote Link to comment https://forums.phpfreaks.com/topic/283848-php-drop-down-menu/#findComment-1458029 Share on other sites More sharing options...
Ch0cu3r Posted November 12, 2013 Share Posted November 12, 2013 On line 26 of home.php you are not closing the select tag. This is how line 26 should read. echo "<select name='cust_id'>"; Quote Link to comment https://forums.phpfreaks.com/topic/283848-php-drop-down-menu/#findComment-1458030 Share on other sites More sharing options...
Solution skygremlin Posted November 12, 2013 Author Solution Share Posted November 12, 2013 AHH.... thanx... Quote Link to comment https://forums.phpfreaks.com/topic/283848-php-drop-down-menu/#findComment-1458037 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.