CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
Other Discussions
MySQL Connection?
ken079
Permalink to comment
#
September 2009
HOW can i know mysql is connection? mysql is creat, and usrname \password :geek: :
samuel3132
Permalink to comment
#
September 2009
To know about the Mysql connection go the Mysql server home page,Where you can get the connection string and etc.
You can also get the details about the username and/or password from the onnection string itself.
Robskiwarrior
Permalink to comment
#
September 2009
well if you are connection with PHP you could use the "or die" or use if/else...
$stmt = connection();
if($stmt) {
echo "heck yea!";
} else {
echo "no dice!";
}
Add a Comment
You can also get the details about the username and/or password from the onnection string itself.
$stmt = connection();
if($stmt) {
echo "heck yea!";
} else {
echo "no dice!";
}