Access denied error when using mysql_real_escape_string()
问题 i am trying escape some data before it goes into my database, but i keep getting this error: Warning: mysql_real_escape_string(): Access denied for user Now this would usually suggest that i have not connected to the database (it also states (using password: NO)). I was a little confused by this because when connecting to a database i have a 'die' clause so if it fails to connect i get told about it. So i tested this theory by running a simple query in the same function that im trying to