Results 1 to 4 of 4

Thread: Grr!!

  1. #1
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default Grr!!

    Here some code:

    PHP Code:
    $DBhost "*****";
    $DBuser "*****";
    $DBpass "****";
    $DBName "*******";
    $table "l****";
    mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");

    @
    mysql_select_db("$DBName") or die("Unable to select database $DBName");

    $sqlquery "INSERT INTO $table VALUES("Testuser", $thisisurl)";

    $results mysql_query($sqlquery);

    mysql_close(); 
    But it keeps giveing me:

    Parse error: parse error, unexpected T_VARIABLE in *********/index.php on line 21

    Line 21 is
    PHP Code:
    $DBhost "*****"
    btw

    Its sooo annoying please help

  2. #2
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    what is dj host set to as its easier to make it localhost.. although that would explain the t_variable...

  3. #3
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Splinter
    what is dj host set to as its easier to make it localhost.. although that would explain the t_variable...
    It is set to localhost i just blanked it out

  4. #4
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Check that there is semi colons on the line(s) above 21 where necessary.
    kinda quit.

Posting Permissions

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