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

Thread: how to do this

  1. #1
    Regular Coder googleit's Avatar
    Join Date
    Jul 2006
    Location
    birmingham, uk
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to do this

    how would i query a mysql database and format the results in a table with php?

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    using descriptive subjects would be a good start.
    Telling us how far you've got by yourself would also be good, the idea isn't to get people to do it all for you.
    Do you know how to query the database? (http://php.net/mysql-query)
    How to get the result into an array? (http://php.net/mysql-fetch-array)
    Do you know how to use loop structures? (http://php.net/while)
    Struggling with outputting text? (http://php.net/echo)
    Is it the creating of a table that's the problem? (there's a HTML forum a bit higher up...)

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    how do u mean format? just display the results in a <table>??


  •  

    Posting Permissions

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