/$sql = "SELECT * FROM tb_cad WHERE name like '$src_names%' ORDER BY id ASC";
$query = mysqli_query($conn, $sql);
Id | name
------------
1 James
2 Claus
7 John
10 Maria
21 Sonia
22 Evelin
如何获取特定行号的结果?
4-玛丽亚
形式和功能解释。提前谢谢您
我假设 id 和 name 是数据库表中的列名。
$sql = "SELECT id,name FROM tb_cad WHERE name like '$src_names%' ORDER BY id ASC";
$query = mysqli_query($conn, $sql);