Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parse error in connection with switch statement:

Status
Not open for further replies.

mancroft

Programmer
Joined
Oct 26, 2002
Messages
267
Location
GB
I am getting the following error:

Parse error: parse error in /home/ent/public_html/der/wlist.php on line 315

in the code below...

BUT I can't find anything wrong and it was working OK before.

So, the question is... could the parse error be really pointing to a mistake in another part of the code????

Code:
   switch ($_REQUEST['action']) {
//line 315
   case 'displaycat':

   displaycat($_REQUEST['item']);

   break;

   default:

   break;

}

 
PHP parse errors are rarely on the line stated in the error message, what is more accurate is that the code successfully executed up to line (line with error) and then failed.

Need all you code to find the error.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Never mind. I resorted to a backup.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top