Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Mysql/PHP Access Denied
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Swaggots" data-source="post: 322820" data-attributes="member: 37759"><p>So i'm working on this thing. I got this php code :</p><p></p><p>[CODE]<html></p><p></p><p><head></p><p></p><p></head></p><p></p><p><body></p><p></p><p><?php</p><p> $con = mysql_connect("xxxhostxxx","xxxuserxxxx","xxxpassxxx");</p><p> if (!$con) {</p><p> die("Cannot connect: " . mysql_error());</p><p> }</p><p></p><p> if(mysql_query("CREATE DATABASE snippets", $con)) {</p><p> echo "Database created";</p><p> }</p><p> else</p><p> echo "Error: " . mysql_error();</p><p></p><p> mysql_close($con);</p><p>?></p><p></p><p></p><p></body></p><p></p><p></html>[/CODE]</p><p></p><p>but when i'm checking the page out online, it gives me the following error:</p><p></p><p><strong>Error: Access denied for user 'xxxxx'@'10.1.1.27' to database 'snippets'</strong></p><p></p><p>Thanks for the help guys</p></blockquote><p></p>
[QUOTE="Swaggots, post: 322820, member: 37759"] So i'm working on this thing. I got this php code : [CODE]<html> <head> </head> <body> <?php $con = mysql_connect("xxxhostxxx","xxxuserxxxx","xxxpassxxx"); if (!$con) { die("Cannot connect: " . mysql_error()); } if(mysql_query("CREATE DATABASE snippets", $con)) { echo "Database created"; } else echo "Error: " . mysql_error(); mysql_close($con); ?> </body> </html>[/CODE] but when i'm checking the page out online, it gives me the following error: [B]Error: Access denied for user 'xxxxx'@'10.1.1.27' to database 'snippets'[/B] Thanks for the help guys [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Mysql/PHP Access Denied
Top