Hello i am new to PDO so getting confused and getting errors ;) with mysql_real_escape_string ..
can any one help, here is my code
if(!empty($_POST)
Yes, PDO automatically escapes your data, so you don't need to use mysql_real_escape_string. See here, for example.
mysql_real_escape_string