not sure what to do

Discussion in 'Mac Programming' started by Furgster, Jun 21, 2007.

  1. macrumors 6502

    Furgster

    Joined:
    Jun 16, 2007
    #1
    i dont know if you guys have heard of that iphonechat program, well i got the source code and tried to upload it to my own php server but i have hit this roadblock with it, as soon as i get to the login in screen and try to get in it gives me this error:

    i go to that line in the functions.php file, but am not sure what to do, here is the code for that:

    PHP:
    function databaseConnect()
    {
        if (!
    $GLOBALS["databaseIsConnected"]){
            
    $databaseConnectionPointer mysql_connect($GLOBALS["databaseAddress"], $GLOBALS["databaseUsername"], $GLOBALS["databasePassword"]) or die('database connection failed');
            
    mysql_select_db($GLOBALS["databaseName"]) or die('database selection failed');
            
    $GLOBALS["databaseConnectionPointer"] = $databaseConnectionPointer;
            
    $GLOBALS["databaseIsConnected"] = true;
        }
    }
    any help at all why this doesnt work would be great
     
  2. macrumors 6502

    Joined:
    Jun 1, 2006
    #2
    Have you set up the MySQL database properly?
     

Share This Page