Results 1 to 5 of 5

Thread: Parse Error; Syntax error (PHPMYADMIN)

  1. #1
    Join Date
    Feb 2010
    Posts
    4

    Default Parse Error; Syntax error (PHPMYADMIN)

    I get this Error Message: Parse error: syntax error, unexpected ':' in D:\Hosting\5397892\html\connectionfile.php on line 5

    I created the connectionfile.php file in dreamweaver, saved it to my desktop, transferred it to my server from my local system with Fireftp, and it gave me this message. It may be because I did not set user privileges for the user I stated in the PHP file's code (connectionfile.php) Or because I did not put the connectionfile.php into the public_html folder in my server which I do not have.. I just created a directory called public_html and It still did not work...

    I am using Godaddy's PHPMYADMIN which for some reason is called starfield technologies.. I called them earlier and they said they cannot help me with phpmyadmin.. :(


    If you can give me some advice or suggestions that would be great.

    Thank you
    Last edited by simonttz; 02-05-2010 at 01:50 PM.

  2. #2
    Join Date
    Apr 2008
    Location
    Chasing the Holy Grail - Pacific Northwest
    Posts
    1,312

    Default

    Maybe you can post a few lines of the file that you are referencing, a few lines before and after the offending line. Make sure we know which one is line 5, and DO NOT post a username or password. If that's in there, change is to "myusername" and "mypassword" or something like that.

    As an aside, why do you use this on your local drive, and not the standard phpmyadmin?
    In the Hyperion universe, a farcaster is an instantaneous transportation device.
    Experience: The thing you get just after you need it.

  3. #3
    Join Date
    Feb 2010
    Posts
    4

    Default

    <?php
    //opens connection to mysql server
    $dbc = mysql_connect('thankyouanime4','username','passwor d');
    if (!$dbc) {
    die('Not connected' : . mysql_error());
    }

    //Select database
    $db_selected = mysql_select_db("thankyouanime4", $dbc);
    if (!$db_selected)
    {
    die ("can't connect :" . mysql_error());
    }

    //test
    $query="UPDATE logininfo SET email='hopethisworks' WHERE username='username'";
    $result=mysql_query($query);
    ?>


    I just want to run it from localhost so i can test it out and see what it does...

    Idk if this has something to do with it but check this out:

    on this tutorial it shows his server is running from LOCALHOST... on every other tutorial on the web it says the same thing. on MY phpmyadmin home page dashboard thing it shows the IP address to Godaddy HQ in Scottdale AZ.

  4. #4
    Join Date
    Feb 2010
    Posts
    4

    Default

    here is the video tutorial I was working from:

    Freeze frame at 0:30 and analyze:

    http://www.youtube.com/watch?v=ylKfl...D94BE42620925B


    Also continuing the tut it displays the code I used:

    http://www.youtube.com/watch?v=Tteaq...D94BE42620925B

  5. #5
    Join Date
    Feb 2010
    Posts
    4

    Default

    This is what my screen looks like on the homepage:

    http://i47.tinypic.com/14dnho9.jpg

Tags for this Thread

Posting Permissions

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