Jump to content

gracecodesign

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gracecodesign's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This is probably so simple but I am really new to MySQL and PHP. Are there any backend preferences or settings to think about? Help! error message :: Access denied for user: 'gracecod_simple@localhost' to database 'gracecod_simpleauth' php script :: <?php error_reporting(E_ALL); include_once("functions.php"); session_register("login"); session_register("password"); session_register("loggedIn"); $messages=array(); $dbhost="localhost:8080"; $dbuser="gracecod_simple"; $dbpass="*"; $dbname="gracecod_simpleauth"; $conn = connectToDB($dbhost,$dbuser,$dbpass,$dbname); function connectToDB($dbhost,$dbuser,$dbpass,$dbname) { $conn = mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error()); mysql_select_db($dbname,$conn) or die(mysql_error()); return $conn; } ?> thanks so much
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.