RE: [PHP-DB] How to solve T_STRING error?

From: Date: Thu, 26 Dec 2002 13:58:17 +0000
Subject: RE: [PHP-DB] How to solve T_STRING error?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24381@lists.php.net to get a copy of this message
I'd have to see all of your code, but I'm guessing you've left open a paren or a quotation mark, or a <?php ?> block or forgot a semi-colon...probably in a file included before this code is called. Also, you may want to look into how PHP handles null values (I'm pretty sure they evaluate to false, but look into it), and try to verify that $user2->permissionCheck("tech"); is returning a true/false/0/1 sort of result. -- Josh > -----Original Message----- > From: Martin S [mailto:martin@skjoldebrand.org] > Sent: Wednesday, December 25, 2002 8:44 AM > To: php-db@lists.php.net > Subject: [PHP-DB] How to solve T_STRING error? > > Just one page still to do. And I'm stuck. > I keep getting: > > Parse error: parse error, expecting T_STRING' or > T_VARIABLE' or > `T_NUM_STRING' in /www/htdocs/dev/users/tracking-update.php on line 43 > > ON this code: > > AuthCheck("post-only"); > commonHeader("IRM Tracking - Update Information"); > PRINT "<a href=\"$HTTP_REFERER\">Go Back</a><hr > noshade><br>"; > $datenow = date("Y-m-d H:i:s"); > $user2 = new User($IRMName); > $type = $user2->getType(); > $permissions = $user2->permissionCheck("tech"); > $track = new Tracking($tID); > $isStat = $track->isStatus($status); > $isAssign = $track->isAssign($user); > $query = "select dev_group from tracking where (ID=$tID)"; > $sth = $adb->prepare($query); > if($sth) > { > $res = $sth->execute(); > $result = $sth->fetchrow_hash(); > $dev_group = $result["dev_group"]; > } > if($permissions) // This is line 43 > { > if(!$isStat) > { > > > and I can't see what ever is wrong! Probably have been looking too much at > it. Anyone who can see an error in here somewhere? > > /Martin S. > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#24381) next »