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)
With prepared statements you don't have to escape your variables. The driver will do it for you automatically, depending on the database you are using underneath. Actually you mustn't escape it yourself, since this will double escape it.