Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    179
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Lightbulb the art of printing columns

    there are many ways to make this happend but what is the best way
    of printing sql records in non divided number of columns-say 5 columns?

    say you got 10,000 names and you want to print it in 5 columns,

    that is a poor drawing of 12 records in 5 columns:
    1 2 3 4 5
    6 7 8 9 10
    11 12
    ...every one of this 12 is a name

    printing a name + checking if is there some ditails reffered to this name in other table column...
    Last edited by sasha85; 09-25-2007 at 07:55 PM.

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Use the MOD operator.

    Also, please don't double post. You posted this same question in the MySQL Forum. Please pick 1 forum and, if necessary, the moderators can move it.

    MOD Operator:
    http://msdn2.microsoft.com/en-us/library/basszbdt.aspx
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • Users who have thanked Daemonspyre for this post:

    sasha85 (09-27-2007)

  • #3
    Regular Coder
    Join Date
    Sep 2007
    Posts
    179
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Smile man...you absolutely right...it sure looks bad...

    the question was not realy with focus on asp...my bad...if the moderators can delete those Q it will be nice


  •  

    Posting Permissions

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