ltoto Posted September 18, 2006 Share Posted September 18, 2006 I was just wondering how to style the country Id part in this code[code]<?php $sql="SELECT c.countryName, c.countryImage, r.regionName, r.Id FROM tabCountry c, tabRegion r WHERE c.Id = r.countryId";$result = mysql_query($sql);if (!$result) { die('Invalid query: ' . mysql_error());}$country = "null";while ($row = mysql_fetch_array($result, MYSQL_ASSOC)){ $cheader = $row['countryName']; if (strcmp($country,$cheader) !=0){ $country = $row['countryName']; echo <<<HTML <br> <div class="homebar2"><h1>$cheader</h1></div> <div class="country"> <img src="../thumb/phpThumb.php?src=../images/country_{$row['countryImage']}&w=100&h=100&zc=1" alt="Latest Deals"> </div> HTML; }echo <<<HTML <a href="index.php?Id=16&id={$row['Id']}">{$row['regionName']}</a><br>HTML;} ?>[/code]so i want to style the regions basically Link to comment https://forums.phpfreaks.com/topic/21158-div-tag-around-code-huggiebear-may-know/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.