newbie question
| From: | chris mutchler | Date: | Thu, 14 Sep 2000 15:45:44 +0000 |
| Subject: | newbie question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16797@lists.php.net to get a copy of this message | ||
I am getting a parse error in my php script. Is there a way to get a more
specific error message, so that I have a better idea of what is wrong?
Here is my code ( the last line being the one generating the error
message )
<html><head>
<title>IDS Interface: Maintenance Script</title>
</head><body bgcolor="white">
<center>
<img src="/chris/ids110x110.gif">
<img src="/chris/ImmediatelyDeliveredService1.gif">
</center>
<table width="100%">
<?
function draw_form () {
global $conn;
$result = pg_exec($conn, "
select m.ids_int, m.off_start, m.off_end, m.on_start, m.on_end, m.changer,
m.date_changed, m.comment, p.first_name, p.last_na
me
from mail_changes m, personnel p
where p.ids_int = m.ids_int
order by m.on_start, m.on_end, m.off_start, m.off_end, p.last_name,
p.first_name");
if ($result) {
$rows = pg_numrows($result) -1;
$cols = pg_numfields($result) -1;
for ($i=0; $i<=$rows; $i++) {
for ($j=0; $j<=$cols; $j++) { $buf[$j] =
pg_result($result, $i, $j); }
draw_row($buf[0], $buf[1], $buf[2],
$buf[3], $buf[4], $buf[5], $buf[6], $buf[7], $buf[8], $bu
f[9]);
} //end forstatement
} // end if statement
} //end draw_form
funtion draw_row ($num, $offs, $offe, $ons, $one, $changer, $chdate,
$comment, $fn, $ln) {
thanks for any assistance you can offer.
chris mutchler
davron@leibnizcreations.com