Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Parse error: syntax error, unexpected T_STRING in C:\wamp\www\register.php on line 9

  • 03-02-2008 9:58pm
    #1
    Closed Accounts Posts: 51 ✭✭


    hi guys i have an error coming up all the time, and i have spent so so much time trying to sort it that its just not worth me lokng anymore, because i just can't find it!
    i just gave a sample of code there down below.
    here is the code:

    <?PHP


    //Database Information

    $dbhost = "localhost";
    $dbname = "mydatabase";
    $dbuser = "root;
    $dbpass = "gasman";

    //Connect to database

    mysql_connect ( $dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error());
    mysql_select_db($dbname) or die(mysql_error());

    $name = $_POST;
    $email = $_POST;
    $username = $_POST;
    $userid = $_POST;
    $Type = $_POST;
    $Location = $_POST;
    $Availability = $_POST;
    $password = $_POST[‘password’];
    $StarRating = $_POST;


Comments

  • Closed Accounts Posts: 81 ✭✭dzy


    $dbuser = "root";


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Personally I wouldn't connect to the db as root, I'd create a limited account for my application as connect through that.


Advertisement