I'm working on a WordPress plugin and recently I have planned to migrate from SQL to
$wpdb. I'm using a method called
$wpdb->prepare instead of
mysql_real_escape_string but it does not work.
Here is what I tried:
echo mysql_real_escape_string( $fetch_row )
mysql_real_escape_string function executed you can see the difference in the string.
I came along this question on stackexchange so I used
but the output did not change, it is just like the input.
Suggest me where I'm doing mistakes.