Jump to content

cheesecake86

New Members
  • Posts

    1
  • Joined

  • Last visited

cheesecake86's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can anybody help me get this code to a two column page now its 1 2 3 4 instead of 12 34 <div id="welcome"> <H3> </H3> </div> <div id="homeCols"> <div id="catCol"> <div> <b class="orageBG"> <b class="orageBG5"></b> <b class="orageBG4"></b> <b class="orageBG3"></b> <b class="orageBG2"></b> <b class="orageBG1"></b></b> <div id="catCol2"> <h3>Categories</h3> <div> <b class="orageBG"> <b class="orageBG1"></b> <b class="orageBG2"></b> <b class="orageBG3"></b> <b class="orageBG4"></b> <b class="orageBG5"></b></b> <div class="orageBGfg"> <? $sql = "SELECT DISTINCT category FROM forsale_content ORDER BY category ASC"; $result = mysql_query($sql); while ($record = mysql_fetch_object($result)) { $query = "SELECT COUNT(*) FROM forsale_content WHERE category='$record->category' AND status='online'"; $numentries = mysql_query($query) or die("Select Failed!"); $numentry = mysql_fetch_array($numentries); ?> <div id="cat"><a href="?q=cat-view&category=<? echo"$record->category";?>"><? echo "$record->category";?></a> (<? echo $numentry[0]; ?>)</div> <? } ?> </div> <b class="orageBG"> <b class="orageBG5"></b> <b class="orageBG4"></b> <b class="orageBG3"></b> <b class="orageBG2"></b> <b class="orageBG1"></b></b> </div> </div> </div> </div> <div id="newestCol"> <h3>Newest Listings</h3> <? $sql = "SELECT * FROM forsale_content WHERE status='online' ORDER BY id DESC LIMIT 15"; $result = mysql_query($sql); echo "<table><tr>"; $count = 1; while ($record = mysql_fetch_object($result)) { ?> <div id="newestBlock"> <div id="newTitle"> <a href="?q=detail&id=<? echo "$record->id";?>"> <img src="<? echo "$record->photo";?>" width="300" /> <?php if($record->price != "") { ?> <?php } ?> <? if ($count++ % 2 == 0) { echo "</tr><tr>"; } } echo "</tr></table>"; ?> </div> </div> <div id="newDate"></div> </div> </div> </div>
×
×
  • 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.