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 Quote Link to comment 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.