Database Password - Please help

wxdqz

New Member
Hi everybody, I am new to using databases over the net. My problem is as follows:
I created a MySQL database in my site, and created a PHP3 class file with all the sqlconnect and SQL statments which i can call from other PHP3 files ,BUT in order to access the database I must write my USERNAME and PASSWORD in that PHP3 file which can be viewed by anybody or even downloaded.
How can I make that PHP3 class file unaccessable by anyone but only me? OR is there a way to encrypt the USERNAME and PASSWORD? OR is there any other solution for that problem? Thank you
 
Back
Top