Originally posted by Anthony2oo5
The problem still exists -- I have found no string issues in my code yet -- and it's not caused by comments only present in my example.
I will post another version of the problem code, without code tags to confuse editors, and most carefully, so as to avoid pesky typos!! This sample will be slightly more complete too.
[code=php]$presult = mysql_query("se lect * from mrb_pipe
where pproj = '$proj'");
while ($pipe = mysql_fetch_ass oc($presult)) {
if ($pipe["pins"] == "N") break;
$tpbidit = $pipe["pbidit"];
$tpsys = $pipe["psys"];
$stresult = mysql_query("se lect * from mrb_stot
where sbidit = '$tpbidit'
and ssys = '$tpsys'");
if (mysql_num_rows <> 1) {
mysql_query("in sert into mrb_stot (sbidit,
ssys, inssf, inslf, imatl, ilab, imhs,
mmatl, mlab, mmhs, sexp, slab, smhs) values
('$tpbidit', '$tpsys', 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)")
or die("subttl no workie");
$stresult = mysql_query("se lect * from mrb_stot
where sbidit = '$tpbidit'
and ssys = '$tpsys'");
$ttlmhs = 0.0;
}
$subt = mysql_fetch_ass oc($stresult);
mysql_free_resu lt($stresult);
getSurf(1, $pipe["psize"], $pipe["pthk"]);
$actstr = $pipe["pstr"];
$strbdsf = $actstr * $psfmlt;
$winssf = $subt["inssf"];[/code]
[Added CODE tags for readability. To view the source code without line numbers, click the 'Reply' button. Thanks! -- pbmods]
At this point -- the last line -- is when I get the T_ENCAPSED_ parse error. It makes it through all the previous code. I'd put more error-checking in, but I've got to clear the parser first!!
Thank you again for your indulgence, and please pardon my occasional absence -- gotta make the donuts. I hope your eyes are sharper than mine!! -- Rhys
Comment