Hello,
I am using mysql database connection in my app to retrieve info from server. As Erel described in tutorial it is open to any attack because query is directly being executed via the php file.
So i defined a password to send with the qury and php checks for the password then executes the command. My question is in my app, is there any place that defining the password is more safer than other places. For example, if i define the password as string under process_globals is it much safer all defining anywhere within the app is same for security reasons ?
TY
I am using mysql database connection in my app to retrieve info from server. As Erel described in tutorial it is open to any attack because query is directly being executed via the php file.
So i defined a password to send with the qury and php checks for the password then executes the command. My question is in my app, is there any place that defining the password is more safer than other places. For example, if i define the password as string under process_globals is it much safer all defining anywhere within the app is same for security reasons ?
TY