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)
mysql_real_escape_string requires an active mysql connection made through a mysql_connect call previously... So yes, it won't work.
mysql_real_escape_string
mysql
mysql_connect
PDO does that automatically for you anyway