Page 1 of 1

Parse error: syntax error, unexpected T_IF

Posted: Fri Jun 10, 2005 10:08 pm
by cjermain
Hey what does this error mean?? What wrong with my code??

Error:

Parse error: syntax error, unexpected T_IF in c:\Inetpub\wwwroot\work\company\display.php on line 3


Code:

Code: Select all

<?php include('includes/connect.php')

if (empty($_GET['url'])) {

$url=false;

} else {

$url=true;

}

?>
Thanks!
-Colin J

d11wtq |

Code: Select all

tags please..... [/color]

Posted: Fri Jun 10, 2005 10:15 pm
by method_man
first of all
use php tags

Code: Select all

<?php
include('includes/connect.php')

if (empty($_GET['url'])) {

$url=false;

} else {

$url=true;

}

?>

Posted: Fri Jun 10, 2005 10:21 pm
by hongco
check error on your display.php file

Posted: Fri Jun 10, 2005 10:54 pm
by Skara
you're missing a ; at the end of the include statement. Check a few lines before and after the error line before posting for help. ;)

Posted: Sat Jun 11, 2005 12:07 am
by hongco
Skara wrote:you're missing a ; at the end of the include statement. Check a few lines before and after the error line before posting for help. ;)
:lol:

Posted: Sat Jun 11, 2005 8:28 am
by cjermain
Yea thats it.

Thanks!
-Colin J