我有这样的代码=
<?php
$sql=mysql_query("select first_name, middle_name, last_name, address, mothers_name from tabel");
while($s=mysql_fetch_array($sql))
{
$firstname=$s['first_name'];
$middlename=$s['middle_name'];
$lastname=$s['last_name'];
$name_all= "$firstname"." $middlename"." $lastname";
similar_text($name_all, $name_all, $percent);
echo "Presentasi = $percent %";
}
?>
但结果每个名字都是 100%
example:
1 Adi Surya 100%
2 Budi Surya 100%
3 Surya Adi 100%
我想要这样的结果=
1 Adi Surya 63%
1 Surya Adi 63%
2 Budi Surya
请帮帮我我该怎么办?