PHPFOG and MySql
Posted
by
jim dif
on Stack Overflow
See other posts from Stack Overflow
or by jim dif
Published on 2012-09-06T15:36:02Z
Indexed on
2012/09/06
15:38 UTC
Read the original article
Hit count: 214
I am playing around with PHPFog and as a result I ended up with a MySql database. I am trying to figure out how to connect to it with a success message.
PHPFog says use this:
mysql_connect(
$server = getenv('MYSQL_DB_HOST'),
$username = getenv('MYSQL_USERNAME'),
$password = getenv('MYSQL_PASSWORD'));
mysql_select_db(getenv('MYSQL_DB_NAME'));
So I basically plug my variables into the above? Or Do I do something different?
Thanks, Jim
© Stack Overflow or respective owner