You are here: Re: Saving a result to another table « PHP Programming Language « IT news, forums, messages
Re: Saving a result to another table

Posted by Tim Roberts on 11/03/72 11:16

vaavi8r@alltel-dot-net.no-spam.invalid (maceo) wrote:
>
>if ($number > 0) {
> /* Print roster header
> Change this HTML to fit your webpage layout */
> print "<table>";
> print "<tr>";
> print "<td bgcolor=#000080 width=85 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>NUMBER</b></font></td>";
> print "<td bgcolor=#000080 width=120 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>NAME /
>EMAIL</b></font></td>";
> print "<td bgcolor=#000080 width=130 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>CITY</b></font></td>";
> print "<td bgcolor=#000080 width=93 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>COUNTRY</b></font></td>";
> print "<td bgcolor=#000080 width=93 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b>FLIGHT
>TIME</b></font></td>";
> print "<td bgcolor=#000080 width=75 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b><center>STATUS</center></b></font></td>";
> print "<td bgcolor=#000080 width=75 height=12
>align=left><font face=Arial color=#FFFFFF
>size=2><b><center>LOG
>BOOK</b></center></font></td>";
> print "</tr>";

Why do you hurt yourself with all of that repetitive coding? It is
certainly wastely, and is sure to lead to typographical errors and
cut-and-paste problem.

<style> <!--
table.one tr td {
background-color: #000080;
color: #ffffff;
font: bold 11pt arial,helvetica,sans serif;
}
--> </style>

print "<td width=85>NUMBER</td>";
print "<td width=120>NAME / EMAIL</td>";
print "<td width=130>CITY</td>";

Isn't that easier to read? And it's SO much easier to maintain, such as
when you want to tweak the colors.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация