Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP Output into two columns
Old 07-18-2008, 03:14 PM PHP Output into two columns
Junior Talker

Posts: 1
Name: Deen
Trades: 0
Hi All,

Just a quick one, I need to out put a query into two columns, i have done it using a solution i found online.. however I couldn't style it with appropriate CSS.

So back to ye old drawing board.

so it will show up like this:

1 2
3 4
5 6

here is my current code:

PHP Code:
<table width="300" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <?php do { ?>
<tr>
  <td><?php echo $row_rsCatlist['category']; ?></td>
</tr>
<?php } while ($row_rsCatlist mysql_fetch_assoc($rsCatlist)); ?>
</table>
Thanks in advance
deenworks is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-18-2008, 10:02 PM Re: PHP Output into two columns
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Not exactly sure whats going on in your code but:

Code:
<table>
<tr><td>echo $row['one']</td>
      <td>echo $row['two']</td></tr>
</table>
Not sure if thats what you are after. It seems too simple of an answer to be what youre asking so ask again if thats not it.
__________________
DVD Movie Release Database:
Please login or register to view this content. Registration is FREE
Truly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP Output into two columns
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09657 seconds with 12 queries