jarv Posted December 6, 2010 Share Posted December 6, 2010 I think I'm nearly there, I just want to display a drop down list <ul> <li><form name="form3" method="post" action=""> <select name="menu2" onChange="MM_jumpMenu('parent',this,0)" class="textbox"> <option value="">Please choose a town!</option> <?php while($row = mysql_fetch_array($result)) { echo '<option value=\"pub_info.php?rsTown='.row['rsTown'].'\">'; echo ''.row['rsTown'].' ('.$total_pages.')</option>'; } echo '</select>'; echo '</form>'; ?> </li> </ul> my error lies on line 465 which is this bit: echo '<option value=\"pub_info.php?rsTown='.row['rsTown'].'\">'; echo ''.row['rsTown'].' ('.$total_pages.')</option>'; but I think my code is just a mess?! what do you think? Quote Link to comment https://forums.phpfreaks.com/topic/220820-messy-code-please-help/ Share on other sites More sharing options...
KevinM1 Posted December 6, 2010 Share Posted December 6, 2010 You mean $row['rsTown'].... Quote Link to comment https://forums.phpfreaks.com/topic/220820-messy-code-please-help/#findComment-1143575 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.