6 replies [Last post]
t41
Offline
newbie
Last seen: 14 years 33 weeks ago
Joined: 2007-04-12
Posts: 3
Points: 0

Hi,
I am trying to display rows of data from MySQL table.
Do far I have being able to do some data manipulation but is not what I want.
I do not have a clue!
I do need help.
I will like to have a static header.
Column1 Column2 Column3 Column4 Column5
--------------------------------------------------
Dataofc1 Dataofc2 Dataofc3 Dataofc4 Dataofc5
Dataofc1 Dataofc2 Dataofc3 Dataofc4 Dataofc5
Dataofc1 Dataofc2 Dataofc3 Dataofc4 Dataofc5

Iam using something like:

<div id="head_Main" class="Hcol1">
Column1
</div>

etc...

and for the data

<div id="detail" class="column1">
Dataofc1
</div>

How do I do it?
thanks
-L

t41
Offline
newbie
Last seen: 14 years 33 weeks ago
Joined: 2007-04-12
Posts: 3
Points: 0

opps the second part did not

opps the second part did not work.
I am using divs for each column of the sql table as well as
for each title of the header.

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 9 years 9 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Why don't you use a

Why don't you use a table?

Tabular data is what its there for.

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 40 weeks 3 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Chris..S wrote:Why don't you

Chris..S wrote:
Why don't you use a table? Tabular data is what its there for.

I agree with Chris. What you describe is tabular content, and so semantically it belongs in a table and putting it in any other container is poor practice. Use a table.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Deuce
Deuce's picture
Offline
Guru
Somewhere, USA
Last seen: 4 years 19 weeks ago
Somewhere, USA
Timezone: GMT-5
Joined: 2005-11-20
Posts: 4424
Points: 1843

motion carried

motion carried

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

t41
Offline
newbie
Last seen: 14 years 33 weeks ago
Joined: 2007-04-12
Posts: 3
Points: 0

Thank you guys for the

Thank you guys for the input.
Tabular it is.
Good luck to all.
-L

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 9 weeks 1 day ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9674
Points: 810

Ooops, apologies, I thought

Ooops, apologies, I thought it was Deuce's thread so when s/he said "motion carried" I marked the thread as solved :oops:

oh well, never mind Tongue

Verschwindende wrote:
  • CSS doesn't make pies