i have what should be a simple question. (Table = Leads, Field = message)
the SQL command that I want to use is: UPDATE Leads SET message = REPLACE(message, 'Â', '')
when I execute this in the SQL command window of phpMyAdmin, it works like a charm.
however, when I include it in a simple php file, it DOESN'T work.
here's the php code:
$sql2 = "UPDATE Leads SET message = REPLACE(message, 'Â', '')";
if (mysqli_query($conn, $sql2))
{
echo "SUCCESS";
}
else
{
echo "FAILURE";
}
it displays "SUCCESS" - but the character doesn't get replaced.
any suggestions?