SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Location
    Colorado Springs, CO
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Layout 2x2 table help

    I am working on trying to set up a script that searches for images and displays the results in a 2x2 table.

    The code I am working with now works in Firefox, but is crude at best. What would be the best way to do this:

    Code:
    <?php
      $planimg = mysql_query("SELECT * FROM floorplans WHERE UnitImg LIKE '%.%' AND PropID = $PropId");
    
      while ($row8 = mysql_fetch_object($planimg)) {
    ?>
     
    <table width="370" border="0" cellpadding="0" cellspacing="0" align="left" valign="top">
      <tr>
        <td width="370" align="center" valign="top">
        <img src="images/planpics/<?php echo ($row8->UnitImg); ?>">
        </td>
      </tr>
      <tr>
        <td width="370" align="center" valign="top">
        <?php echo ($row8->Size); ?>
        </td>
      </tr>
    </table>
    
    <?php
    };
    ?>
    Basically I want two results side by side down the page for as many that exist.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Location
    Colorado Springs, CO
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I still can not seem to get this to work in IE. It just stretches it off the page and makes it unprintable.

    Any help would be greatly appreciated since I am stumped.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •