title: Escape % character in MySQL
body: <p>I'm trying to save a char which contains, among others %, but the problem is that while other characters such as ' / or " seem to work just fine, I just can't figue out how to escape %. I tried many things, but using mysql_real_escape_string or other stuff just don't work.</p>
  
  <p>At the moment, I'm replacing % with 'percent' (it didn't work with backslash + %), saving that to the database, and then replacing it back before echoing, but as you may notice, it's not really optimal. Please let me know if there's a better way to do it.</p>