Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   php problem (http://www.go4expert.com/forums/php-problem-t6987/)

yoyoo 24Oct2007 03:51

php problem
hi guy can anybody sport the error

i get these error msg when i run the programme
Parse error: syntax error, unexpected $end in C:\wamp\www\nalanda\~phpdesigner_output_tmp.php on line 36 line 36 is at the end of the scritp
what could be the problem

PHP Code:

/* A collection of commonly used functions in OnLib */

<html><body><p><p><p><p><p><p>    <?
      die("Error " . mysql_errno() . " : " . mysql_error());
function isadmin()
    if($_SESSION['bo_id'] != "ADMIN")
        global $www;
            <html><head><title>Must Be admin</title>
            <meta http-equiv="Refresh"
                content="5 ; URL=<?=$www?>/userf/login.php">
            <font color="brown"><h4>Only Administerators Can Access This Page</h4></font>
            <br>You will be redirected to <a href="<?=$www?>/userf/login.php">Login Page</a> in 5 seconds


shabbir 24Oct2007 09:39

Re: php problem
Now having so many posts you should know how to post the code in the posts and I would suggest you go through the Hints before you make a post.

pradeep 24Oct2007 10:07

Re: php problem
I think the problem is the tendency to switch back and forth between <?php and <?. If short_tags is turned off (because it has been deprecated), then the bits between <?...?> will be ignored by the parser, and that would cause problems. Indeed, replacing <? with <?php clears the error.

All times are GMT +5.5. The time now is 17:21.