had to remove the mysql_real_escape_string for it to work on the live site. also updated the user and pass to work for live site
had to remove the mysql_real_escape_string for it to work on the live site