i want to echo one value from mysql column which is 90% similar to php variable. echo only the value that is 90% similar to php value. i think like clause wont help in this case.
$x = $_GET[x];
$res = mysqli_query($con,"SELECT * FROM text");
while ($row = mysql_fetch_assoc($res))
$string = $row['text'];
foreach ($string as $y)
similar_text($x, $y, $percent);
echo $string ;
i think the above code has many mistakes. i welcome some new solution for my task.