sql query into a html table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Deccypher
    New Member
    • Mar 2008
    • 14

    sql query into a html table

    hi,
    ive seen may sofwares and lenghty scripts do to this . but im looking for a simple way to display sql queries into a html table

    example
    <a href='carrier.p hp?id=$id'><img src='Images/$item' />
    is the data from the sql table i want

    but instead of it showing as
    xxxxxxxx
    or
    x
    x
    x
    x

    i want it to show as
    xxxx
    xxxx
    xxxx
    xxxx

    where x = <a href='carrier.p hp?id=$id'><img src='Images/$item' />

    i think there should abe just a simple loop to use . but all the examples i have found have inclueds running the query into a .js file then displaying it . or having a bunch of files to do tother things as well.

    im trying to make a very clean coded website and i am sure there must be a simple loop for this

    any help tips link or anything would help me out alot

    Thanks
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    This question is related to PHP, so moved it to the relevant forum.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Have a look at this thread :)

      Comment

      • Deccypher
        New Member
        • Mar 2008
        • 14

        #4
        Originally posted by markusn00b
        Have a look at this thread :)

        Thank you this looks like what i need or ill re post to let you know if it succeeds

        Comment

        • Deccypher
          New Member
          • Mar 2008
          • 14

          #5
          modified it a little and worked perfectly

          thank you sooo much

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Originally posted by Deccypher
            modified it a little and worked perfectly

            thank you sooo much
            Welcome!

            Post back whenever you need some help

            regards.

            Comment

            Working...