PHP - Moved: Best Book(s) For Learning Php And Php W/ Mysql
This topic has been moved to Miscellaneous.
http://www.phpfreaks.com/forums/index.php?topic=346785.0 Similar TutorialsThis topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=317410.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=313079.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=314342.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=326872.0 When I say I'm a noobie, I'm not kidding!
I'm using a hosting service (Bluehost) that offers PHP 5.4.30 and mySQL 5.5.37 and am trying to work through a beginners tutorial. Using the service's PHPMyAdmin tool, I have no trouble creating a database and table that I can manipulate using this tool. My problem is with my very first php command:
$db = new mysqli(localhost, 'me', 'pw', 'RR');
'me' and 'pw' are my Bluehost signon credentials that were also required to get into the PHPMyAdmin tool. 'RR' is the actual name of the database I'd created. I'm not sure if these are what mySQL is looking for. I also tried 'root' and a null password as done in the tutorial, but that didn't help. The message I get is:
Connect failed: Access denied for user 'me'@'localhost' to database 'RR'
I'd love to get somewhat proficient on PHP/mySQL. Please help.
This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=334133.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=353173.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=320124.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=308924.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=316440.0 Hi Guys, i got the PHP and MYSQL for dummies (4th addition) and i am typing up the code examples myself just to gain the experience. Im at the end of the book nearly where it is talking about log in applications that add info to the url but for some reason the code doesn't work. Im using Xampp as a localhost server. Attached are the two scripts for the program, and below is the include file. I open up the login_url form first: form_log.inc: <?php /* Program name: form_log.inc * Description: Displays a login form */ if( isset ( $message ) ) { echo $message; } echo "<form action='$_SERVER[PHP_SELF]' method='POST' style='margin: .5in'>\n <p><label for='username' style='font-weight: bold; padding-bottom: 1em'>User ID: </label> <input type='text' name='user_name' id='user_name' value='$user_name' />\n</p> <p><label for='password' style='font-weight: bold'>Password: </label> <input type='password' name='password' id='password' value='$password' />\n</p> <p><input type='submit' value='Log In'>\n</p> <input type='hidden' name='sent' value='yes' /> </form>\n"; ?> Here are the errors i get: Warning: include(dbstuff.inc) [function.include]: failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/test_php/login_url.php on line 31 Warning: include() [function.include]: Failed opening 'dbstuff.inc' for inclusion (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/test_php/login_url.php on line 31 Couldn't execute query. Any help would be appreciated thankyou Enlighten This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=348054.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=350716.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=321649.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=312323.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=306094.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=351625.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=325846.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=308756.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=344992.0 |