I want something like this
$smiley=mysqli_fetch_assoc(myqli_query($con,“select * from smiley”));
$text=$smiley[‘textforchange’];
$imageadress=’’;
$room=mysqli_fetch_assoc(myqli_query($con,“select * from rooms”));
$txt=$room[‘text’];
$output=str_replace($text, $imageadress, $txt);
And now
Echo $output;
Is not working?help