php problem free gmail invite

Discussion in 'OT Technology' started by Woodmaster, Sep 11, 2004.

  1. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    Parse error: parse error, unexpected $ in /updatearticle.php on line 51

    Ok there is no line 51 in that document. The only included file that I think might be buggin it is shown below too. Help me fix it and get a free gmail invite, 2 if you help me within the hour.

    updatearticle.php is below---
    ----------------------------
    <body bgcolor="#CCCCCC">

    <?PHP

    include "connect2.php";



    echo "<font size='5' face='Verdana'><b><u>Current Reviews</u></b></font><BR><BR>";

    $result = mysql_query("SELECT * FROM news",$db);



    while ($myrow = mysql_fetch_array($result)) {

    if ($auth_level > 1) {

    print "<a href=\"edita.php?id={$myrow['id']}\">{$myrow['id']}{$myrow['title']}</a>";

    print "<a href=\"deletea.php?id={$myrow['id']}\">(DELETE)</a><br>";
    }

    } else {

    print "{$myrow['id']} {$myrow['title']}";


    }

    ?>
    ------------------
    connect2.php is below--
    -----------------------
    <?php

    $host = 'localhost';
    $dbuser = 'dieinafire';
    $dbpass = 'youwish';
    $dbname = 'dieinafire';



    $db = mysql_connect($host,$dbuser,$dbpass) OR die(mysql_error());
    mysql_select_db($dbname) or die(mysql_error());

    ?>
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    there is no line 51 in that file. :confused:
     
  3. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    I know... i'm saying to myself WTF.
     
  4. RaginBajin

    RaginBajin Have you punched a donkey today?

    Joined:
    Dec 24, 2001
    Messages:
    8,740
    Likes Received:
    0
    Location:
    NoVA
    Too many } between the this area

    print "<a href=\"deletea.php?id={$myrow['id']}\">(DELETE)</a><br>";
    }

    } else {

    remove it.. That should make it work
     
  5. EkriirkE

    EkriirkE Zika Xenu OT Supporter

    Joined:
    Jan 11, 2004
    Messages:
    14,799
    Likes Received:
    0
    Location:
    Dublin & San Francisco, CA
    not quite... it needs to be moved

    PHP:
     <body bgcolor="#CCCCCC">

    <?PHP

    include "connect2.php";



    echo 
    "<font size='5' face='Verdana'><b><u>Current Reviews</u></b></font><BR><BR>"

    $result mysql_query("SELECT * FROM news",$db);



    while (
    $myrow mysql_fetch_array($result)) {

    if (
    $auth_level 1) {

    print 
    "<a href=\"edita.php?id={$myrow['id']}\">{$myrow['id']}{$myrow['title']}</a>";

    print 
    "<a href=\"deletea.php?id={$myrow['id']}\">(DELETE)</a><br>"

    } else { 

    print 
    "{$myrow['id']} {$myrow['title']}";


    }

    ?> 
     
     
  6. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    I already had it fixed last night but for your effort you get a gmail invite, please post your email address. THanks.
     
  7. RaginBajin

    RaginBajin Have you punched a donkey today?

    Joined:
    Dec 24, 2001
    Messages:
    8,740
    Likes Received:
    0
    Location:
    NoVA
    Nah. It's all good. I got gmail already. Thanks though.. I just thought I figured it out.. I'm learning PHP right now.
     
  8. EkriirkE

    EkriirkE Zika Xenu OT Supporter

    Joined:
    Jan 11, 2004
    Messages:
    14,799
    Likes Received:
    0
    Location:
    Dublin & San Francisco, CA
  9. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil
    gmail servers are crapping out right now.. will send u an invite a little later when they arent so gay..

    Google
    Error


    Server Error
    The server encountered a temporary error and could not complete your request.
    Please try again in 30 seconds.
     
  10. Woodmaster

    Woodmaster New Member

    Joined:
    Dec 25, 2002
    Messages:
    15,448
    Likes Received:
    0
    Location:
    Brasil

Share This Page