When is use the following code without mysql_real_escape_string, works fine. I simply trying to grab a text string that may have apost. from an input form and format it to p
No, you shouldn't mix mysql and mysqli.
Use here instead of mysql_real_escape_string($var):
mysql_real_escape_string($var)
$con->real_escape_string($var);