I have a PHP function that any other function on my server goes to to connect to a global MySQL database:
function connect_to_mysql_db() {
$con = mysql_connect("localhost", "user_name", "password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db_name", $con);
}
The file which holds this function, as well as most of the others, is located in the following location on my BlueHost server:
/home3/username/includes/scripts.php
The database currently holds only one table with a list of email addresses (those of my subscribers...) I just want to know if the database is secure (for the sake of my subscribers)
If not, does anyone have any other ideas (encryption?). I know HASHING won't work because that is usually 1-way...
EDIT
FYI: The /includes/ directory is not /public_html/
CONCLUSION
Thank you to all who helped me, but I decided that there is just too much liabilities for no good reason, so I will not be storing anything secure in a database. Instead, I will use external services!
Cheers!