Menu

Unable to connect database....help plz

Anonymous
2003-03-25
2003-08-05
  • Anonymous

    Anonymous - 2003-03-25

    hello guys, genie is a great stuff, but i find it hard to make use of it.

    I installed "phpCodeGenie1.4" in my server( support PHP,Mysql and the db already exist), it works, it can show all table in that db and help generate php codes, the code generated by "database lister" is saved as view.php and put in a newly created directory.

    in that directory, there is also
    directory: images, lang, libraries
    files :
    datacon.php , foot.php, head.php, index.php, setting.php, view.php(generated by genie)

    index.php have only one line ( i.e. include("view.php"); )

    beside index.php and view.php, all copy directly from "phpCodeGenie1.4"

    when i browse that directory in browser, index.php will run view.php but an error message " unable to connect to database" appear...what should i do? hostname, username, password is set probablly.

     
    • Anonymous

      Anonymous - 2003-08-05

      Hi Matthew
      post this into the datacon.php file and fill in the details

      $MySqlHostname = "localhost";
      $MySqlUsername = "username";
      $MySqlPassword = "password";
      $MySqlDatabase = "database_name";

       

Log in to post a comment.