Jump to content

messy code please help


jarv

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/220820-messy-code-please-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.