额,其他的一个帖子你不是问了的吗?select * from table where id like A%
1.html <a href="1.php?ch=A">A</a> <a href="1.php?ch=B">B</a> .... ======================================== 1.php<?php$sql = "select * from table where name like 'A%' " //当然A% 需要改成您的参数 $sql = "select * from table where name like '".$ch."%' " ?>
1.html
<a href="1.php?ch=A">A</a>
<a href="1.php?ch=B">B</a>
....
========================================
1.php<?php$sql = "select * from table where name like 'A%' "
//当然A% 需要改成您的参数
$sql = "select * from table where name like '".$ch."%' "
?>