Re: How to solve T_STRING error?

From: Date: Thu, 26 Dec 2002 05:03:14 +0000
Subject: Re: How to solve T_STRING error?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-24373@lists.php.net to get a copy of this message
Jason Wong wrote: > On Wednesday 25 December 2002 21:44, Martin S wrote: >> 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? > > It /looks/ OK, assuming that you have closing braces on the last two IF > statements. Are you sure you're looking at the right file? > Yes unfortunately I am. I've checked both the closing braces and the file name umpteen times by now. /Martin S.

« previous php.db (#24373) next »