Jump to content

code problem


darkfreaks

Recommended Posts

okay when i expand or collapse the menu i can click on any state and it will only expand the first city in the first state. im confused where to place my div and end div tags. so it expands the cities right.

 

<a href="<?php echo $country_url; ?>" class="citylist_city"onclick="javascript:toggleblocks('block01');">
			<?php echo $country['countryname'];
			if($show_region_adcount) echo "(".(0+$country_adcounts[$country['countryid']]).")"; ?>
			</a>
			</div>
			<?php
			$sql = "SELECT * FROM $t_cities ct WHERE ct.enabled = '1' AND ct.countryid = $country[countryid] $sortcitysql";
			$resct = mysql_query($sql) or die(mysql_error());
			while($city=mysql_fetch_array($resct))
			{
				if($sef_urls) $city_url = "{$vbasedir}$city[cityid]_" . RemoveBadURLChars($city['cityname']) . "/";
				else $city_url = "?cityid=$city[cityid]&lang=$xlang";
			?>

                                                                                 <div id="block01" class="collapseblock">
				<a href="<?php echo $city_url; ?>" class="citylist_city">
				<?php echo $city['cityname']; 
				if($show_city_adcount)
				echo "(".(0+$city_adcounts[$city['cityid']]).")"; ?>
				</a> </div><br>

Link to comment
https://forums.phpfreaks.com/topic/70398-code-problem/
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.