Results 1 to 11 of 11

Thread: tables PHP - resolved

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Newcastle
    Posts
    260

    Resolved tables PHP - resolved

    Hi all,

    in the below code i create a single column table on the fly using a returned record set, and this works great my question is how can i create a 2 column table as I just cannot work it out.

    PHP Code:
    <?php
    while($row mysql_fetch_array$result1 )) {
    // Print out the contents of each row into a table
    echo "<tr><td>"
    echo 
    $row['name'] .'<br>';
    echo 
    '<a href="detail.php?item=' .$row['stockcode']. '&dept='.$_GET['dept'].'"> <img src="'.$row['img_location'].' " width="88" height="94"><br>';
    echo 
    $row['price']. '<br>';
    echo 
    $row['stockcode']. '<br>';
    echo 
    "</td>";  
    echo 
    "</tr>";

    ?>
    many thanks chris
    Last edited by Chrisio; Mar 22nd, 2005 at 11:14 AM. Reason: resolved

Posting Permissions

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



Click Here to Expand Forum to Full Width