|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
php table help??
hi im really new to php developing, i have this tabel written in PHP, but i have no idea on how to customize it...
---------------------------------------------------------------------- PHP Code:
--------------------------------------------------------------- thats the code i have, and basically i want to different colour backgrounds to each row, and if possible have one column with a picture on each row... i also need to have a set width for each column... i would appreciate any feeback or help you can give!! thanks very much in advance. |
|
#2
|
|||
|
|||
|
djkkenny,
Customizing it can be done in various ways... I don't know exactly how much you want to customize it.. As for alternating the row colours, what you can do is perform a calculation using the modulus (%) operator, which will determine which row colour to use on each row: PHP Code:
That will give you alternating row colours... I would, however, suggest using CSS (Cascading Style Sheets) rather than hard-coding your colour/style values directly in your html tags. HTH!
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
||||
|
||||
|
It sounds like maybe you need to find a quick HTML primer for these very basic questions.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php table help?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|