darkfreaks Posted September 23, 2007 Share Posted September 23, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/70398-code-problem/ Share on other sites More sharing options...
rarebit Posted September 23, 2007 Share Posted September 23, 2007 I can't see an opening <div> tag near start? I've stopped using div's cos w3c don't like em! (see js board) Quote Link to comment https://forums.phpfreaks.com/topic/70398-code-problem/#findComment-353659 Share on other sites More sharing options...
darkfreaks Posted September 23, 2007 Author Share Posted September 23, 2007 hey it should work fine but when you click on alabama it only expands the first city in alabama instead of all of them and the same thing happens when u click any other state? http://hotdogclassifieds.com/ Quote Link to comment https://forums.phpfreaks.com/topic/70398-code-problem/#findComment-353694 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.