English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

I have this code:

if(!isset ($_SESSION [username] )
include("create.html");
exit();
?>

Apparently, there is something wrong with "include(...);"
the error is
Parse error: syntax error, unexpected T_INCLUDE in .. on line 3

This code worked fine on my original webhost, and now it doesn't work ???

Thanks in advance

2007-12-14 10:01:57 · 3 answers · asked by htmlmaster123 1 in Computers & Internet Programming & Design

3 answers

Just close isset parenthesis and it will work

2007-12-14 10:37:31 · answer #1 · answered by star.seem 1 · 0 0

Unexpected symbol errors are usually a clue to look at the previous line for unclosed parenthesis or missing semicolons.

2007-12-14 18:25:08 · answer #2 · answered by daa 7 · 0 0

I think your code is fine, you just forgot to close the parenthesis
for your if statement

this should work
if( !isset ($_SESSION [username] ) )
include("create.html");
exit();
?>

;)

2007-12-14 18:17:17 · answer #3 · answered by RuFdRaFt 2 · 1 0

fedest.com, questions and answers