PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You're using mysql_escape_string() on your SQL query so it's escaping the single quotes around the variables and thus the whole thing is not working - you have to only apply this function to the $_POST variables. You could do something like: