php - help with mysql AES_ENCRYPT -
I have created a query but throwing errors is my query here:
< Code> $ query = "Include encryption_test values (values) (AES_NCRPP ('pass', 'password')); I have successfully connected to the server and chose the database. Here is the mysql_error () : There is an error in your SQL syntax;
anyone can do it) I am not looking at anything? Thank you for your help and ask if you have any questions.
value is a MySQL reserved word you need to avoid such a backtick Enter: $ query = "Encryption_estests` (` value ') Enter values (AES_NCRPT (' pass', 'password')) "; Although my personal preference is to write a question like this, I find it very easy to read:
Enter encryption_test SET `values `= AES_ENCRYPT ('pass', 'password')
Comments
Post a Comment