Re: Varying Results Creating Table
| From: | Tim Greenleaf | Date: | Fri, 24 May 2002 19:10:33 +0000 |
| Subject: | Re: Varying Results Creating Table | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13968@lists.php.net to get a copy of this message | ||
Thanks Hugh.....
This script seems to work much better but there are still random errors.
The script I posted had errors just about everytime while this one has
errors less frequently. I am going to change versions of PHP and see if
that makes any difference....But I think for now I am sticking with ASP if
developing on Windows.
Thanks again.
Tim
"Hugh Bothwell" <hugh_bothwell@hotmail.com> wrote in message
news:20020524133437.52258.qmail@pb1.pair.com...
> Try this:
>
> <html>
> <head>
> <title>PHP Test</title>
> <style type='text/css'>
> <!--
> th {
> font-family: Verdana, Arial, sans-serif;
> font-size: 12px;
> font-weight: 700;
> background-color: #ffcc00;
> text-align: center;
> }
> td {
> font-family: Verdana, Arial, sans-serif;
> font-size: 10px;
> background-color: #ffffff;
> }
> .ctr {
> text-align: center;
> }
> -->
> </style>
> </head>
> <body>
> <table border='2' cellspacing='0' cellpadding='3'
bordercolor='#C0C0C0'
> width='97%' id='AutoNumber2' style='border-collapse:
> collapse'
> bgcolor='#FFFFFF'>
> <tr>
> <th width='4%'> </th>
> <th width='28%'>Name</th>
> <th width='13%'>Phone</th>
> <th width='29%'>E-mail</th>
> <th width='22%'>Department</th>
> <th width='4%'> </th>
> </tr>
> <?php
> $row['name'] = "Fred Flintstone";
> $row['phone'] = "233-7625";
> $row['email'] = 'fredf@bedrock.net';
> $row['dept'] = 'Aggragate Extraction';
>
> for ($i = 0; $i < 650; $i++)
> echo
> "<tr>"
> ."<td class='ctr'>$i</td>"
> ."<td>{$row['name']}</td>"
> ."<td>{$row['phone']}</td>"
> ."<td><a
>
> href='mailto:{$row['email']}'>{$row['email']}</a></td>"
> ."<td>{$row['dept']}</td>"
> ."<td> </td>"
> ."</tr>";
> ?>
> </table>
> </body>
> </html>
>
>