Forum Moderators: coopster

Message Too Old, No Replies

php database results

php

         

ictglobal

12:19 am on Jul 19, 2004 (gmt 0)

10+ Year Member



I have a php/mysql program that displays database results.

How can I do this:

I want the background colours of the table to be different colours, say blue. I dont want them to be as the same as the colour of the page.

I want different colours for the three columns. Say column 1 title is red and column 2 title is green

How can I create alternating background colours for the rows

How can I make the results display in the middle of an existing page instead of covering an entire page

How can I display pictures in each of the cells of the table with titles below or above them

Thanks.

coopster

1:27 pm on Jul 19, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Most often you'll find that using Cascading Style Sheets (CSS) [w3.org] make site markup maintenance a lot easier. You can format your tables, and any other html element, using this technique. It allows you to attach style to structured documents. WebmasterWorld has a forum dedicated to CSS [webmasterworld.com] as well, including a CSS Crash Course [webmasterworld.com] that may help you get your feet wet.

neo_brown

2:00 pm on Jul 19, 2004 (gmt 0)

10+ Year Member



You should also be able to locate the the code for the table and format it in the same manner you usually do.
If the tables are already set out how you would like them, then it should be as easy as adding the relevent tags for the cells and to format text where required.