Connecting Tech Pros Worldwide Forums | Help | Site Map

sql query into a html table

Newbie
 
Join Date: Mar 2008
Posts: 14
#1: Mar 14 '08
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.php?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.php?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's Avatar
Moderator
 
Join Date: Jul 2006
Location: Pakistan
Posts: 719
#2: Mar 14 '08

re: sql query into a html table


This question is related to PHP, so moved it to the relevant forum.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,948
#3: Mar 14 '08

re: sql query into a html table


Have a look at this thread :)
Newbie
 
Join Date: Mar 2008
Posts: 14
#4: Mar 14 '08

re: sql query into a html table


Quote:

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
Newbie
 
Join Date: Mar 2008
Posts: 14
#5: Mar 14 '08

re: sql query into a html table


modified it a little and worked perfectly

thank you sooo much
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,948
#6: Mar 14 '08

re: sql query into a html table


Quote:

Originally Posted by Deccypher

modified it a little and worked perfectly

thank you sooo much

Welcome!

Post back whenever you need some help

regards.
Reply