连接数据库 $mysqli=new mysqli("localhost", "root", "123456", "card"); 执行SQL语句 $result=$mysqli->query("select id, title from card where cid={$cid}");