I need to get a row from my database and replace some things in it, but it's not replacing for some reason. What am I doing wrong?
row from database:
‘Shut up,’ ‘shut your mouth,’ and ‘be quiet' all mean to stop talking, but ‘be quiet' is nice. You don't want to be rude.
test.php:
include("connect.php"); //sql connection
include("functionsX.php"); //just some functions
$response = gd1("response/allData/where response like '%all mean to stop talking%'"); //get one row from database
echo $response."<br>";
$response = str_replace("‘", "'", $response);
$response = str_replace("’", "'", $response);
echo $response;
result:
‘Shut up,’ ‘shut your mouth,’ and ‘be quiet' all mean to stop talking, but ‘be quiet' is nice. You don't want to be rude.
'Shut up,’ 'shut your mouth,’ and 'be quiet' all mean to stop talking, but 'be quiet' is nice. You don't want to be rude.
need result:
‘Shut up,’ ‘shut your mouth,’ and ‘be quiet' all mean to stop talking, but ‘be quiet' is nice. You don't want to be rude.
'Shut up,' 'shut your mouth,' and 'be quiet' all mean to stop talking, but 'be quiet' is nice. You don't want to be rude.