Re: Varying Results Creating Table
| From: | Nicole Amashta | Date: | Fri, 24 May 2002 21:22:26 +0000 |
| Subject: | Re: Varying Results Creating Table | ||
| References: | 1 2 3 4 5 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13971@lists.php.net to get a copy of this message | ||
At a quick glance over your code, I don't see any reason why it should cause those errors (based off the simple data you used).
Sorry I couldn't help. Hope you get it figured out.
Nicole
www.aeontrek.com
PS. I do this daily with PHP on windows2k and Apache webserver. I don't get any problems with dynamically generating tables from data pulled from a database. I use versions of PHP 4.0.6 and later.
=========================
Tim Greenleaf wrote:
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'> <!--bordercolor='#C0C0C0'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'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><ahref='mailto:{$row['email']}'>{$row['email']}</a></td>"."<td>{$row['dept']}</td>" ."<td> </td>" ."</tr>";?> </table> </body> </html>