Error... or is it me?
| From: | Peter Lavender | Date: | Tue, 18 Dec 2001 05:49:33 +0000 |
| Subject: | Error... or is it me? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-611@lists.php.net to get a copy of this message | ||
Hi Everyone,
I d/led and installed php 4.1 and setup PEAR that comes with it.
I'm running IIS 5 on win2k php 4.1 not sure the pear version, and MSSQL is
the database server.
Now the following error is generated from the function after the error:
== ERROR ===
PHP Fatal error: Maximum execution time of 30 seconds exceeded in
d:\php\pear\DB.php on line 626 PHP Fatal error: Maximum execution time of 30
seconds exceeded in d:\php\pear\PEAR.php on line 504
===Function===
function getCustListTable($db) {
$sql = "select * from tbl_Customer;";
$result = $db->query($sql);
if (DB::isError($result)) {
die($result->getMessage() . " Failed in getCustListTable()");
}
echo"<table border=\"1\">";
while( $row = $result->fetchRow() ) {
echo "<tr><td><a
href=\"showCust.php?custID=$row[0]\">$row[1]</a></td></tr>";
}
echo "</table>";
$result->free();
}
The browser uses up a load of RAM as a result of the server returning what
appears to be nothing in the table.
Now, my php in general was very much at the baby talk stage... so it could
be something I'm dong wrong and today is my first time using PEAR, I
followed a PEAR tut.
I appreciate any suggestions about this.