Hello and thank you for any help you may provide.
I am a n00b at programming and PHP. I am teaching myself PHP and MySQL.
I have a web form that collects data and inserts it into a MySQL database. I have found that $dbc = mysqli_connect('hostname', 'username', 'password', 'databasename') is not a secure way of storing passwords for database connections. As I understand it a database connection credentials should be in a seperate file with .inc extention.
How does that work?
is this correct / will this work?
$dbc = mysqli_connect( include (dbconnect.inc))
What is the proper what to do this?