<?php
$cid=$_GET["cid"];
$mysqli=new mysqli("localhost","root","wangluo12345","book");
$result=$mysqli->query("select id, bookname from book where cid={$cid}");
while($row=$result->fetch_assoc()){
echo '<ul>';
echo '<li><a href="con.php?id='_$row["id"]_'">'_$row["bookname"]_'</a></li>';
echo '</ul>';
}
?>