SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Wibblesticks Gryff's Avatar
    Join Date
    Oct 2001
    Location
    Asgard
    Posts
    442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    probs with recalling variables

    hello everyone
    if i just use
    session_start();
    it works fine but as soon as i try to check it the array ( $result ) is there is throws up an obscure error
    Parse error: parse error in c:\apache\htdocs\bar.php on line 119

    the following is line 118/119
    which as you can see has no php in it and isnt even in an area that the php should parse

    <a class="barLink" href="#" onMouseOver="window.status='[ Check out where you stand and the top 50 ]';return true;" onMouseOut="window.status='';return true;">Rankings</a><br>

    and the following is the php i am using
    no php is used on the bar.php except getting sessions
    the session works fine on the other pages included but its throwing up that weird error
    anyone got any ideas?
    <?
    session_start();
    if( !$result ){
    die(cookies_invalid());
    function cookies_invalid()
    {
    include("nocookies.php");
    }
    ?>

  2. #2
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, since your if is missing a bracket, that could be it if that html is the last line.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •