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:[EMAIL PROTECTED]] > Sent: Wednesday, December 25, 2002 8:44 AM > To: [EMAIL PROTECTED] > 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php