not sure what to do

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

  1. macrumors 6502


    Jun 16, 2007
    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:

    function databaseConnect()
        if (!
    $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

    Jun 1, 2006

Share This Page