Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Connecting to database from another website secure? Re: Connecting to database from another website secure?

#143371
warymighty
Member

Please, anyone here to help me correct this code, it was telling me that could not connect to database.
My site is flashysky.com
database name : is flashysky

please help me to correct it and send it to my email [email protected]

I will really appreciate if you can help me out.

Thanks.

$mysql_hostname = “flasycom_flashysky”;
$mysql_user = “flasycom@localhost”;
$mysql_password = “household”;
$mysql_database = “flasycom_flashysky”;
$prefix = “”;
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die(“Could not connect database”);
mysql_select_db($mysql_database, $bd) or die(“Could not select database”);

?>