+ Post New Thread
Results 1 to 3 of 3
Web Development Thread, PHP Loop Table in Coding and Web Development; Could someone show me some code for a loop table in php or point me to a website with a ...
  1. #1

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20

    PHP Loop Table

    Could someone show me some code for a loop table in php or point me to a website with a example of something similar

    What i want is

    Code:
      <table width="200" border="1">
        <tr>
          <td></td>
          <td></td>
        </tr>
      </table>
    But i want is php to create it like this
    Code:
     <table width="200" border="1">
        <tr>
          <td>MySQL Result1</td>
          <td>MySQL Result2</td>
        </tr>
        <tr>
          <td>MySQL Result3</td>
          <td>MySQL Result4</td>
        </tr>
      </table>
    Thanks
    Jack

  2. #2

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,037
    Thank Post
    209
    Thanked 425 Times in 306 Posts
    Rep Power
    144

    Re: PHP Loop Table

    Are you wanting to read results from a mySQL database into the table, or just output a normal array?

  3. #3

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20

    Re: PHP Loop Table

    I was just reading the normal results but it doesnt matter now found my answer!

    thanks anyways

    Jack Dunn

SHARE:
+ Post New Thread

Similar Threads

  1. Add dummy table to censornet
    By gh256 in forum How do you do....it?
    Replies: 0
    Last Post: 10th December 2007, 02:24 PM
  2. Time table
    By thegrassisgreener in forum General Chat
    Replies: 35
    Last Post: 27th November 2007, 04:39 PM
  3. Sony StorStation Log on/off loop
    By mmoseley in forum General Chat
    Replies: 0
    Last Post: 23rd November 2007, 06:23 PM
  4. Powerpoint Playlist loop
    By dan6540 in forum How do you do....it?
    Replies: 2
    Last Post: 20th November 2007, 03:11 PM
  5. SQL Table Location G&T
    By mark80 in forum MIS Systems
    Replies: 2
    Last Post: 16th May 2007, 12:46 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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