Rumah >pembangunan bahagian belakang >tutorial php > PHP如何同时查询多个ID
PHP怎么同时查询多个ID?
<?php<br /> include 'include/cmsdj.conn.php'; <br /> $CD_ID=SafeRequest('id','get');<br /> global $db;<br /> $sql='Select * from '.tname('dj').' where CD_ID='.$CD_ID.'';<br /> $row=$db->getrow($sql);<br /> $server=$db->getrow('select * from '.tname('server').' where CD_ID='.$row['CD_Server'].'');<br /> if($row){<br /> $CD_Url=$row['CD_Url'];<br /> $playurl=$server['CD_Url'].$CD_Url;<br /> echo '<list><m src="'.$playurl.'" label="'.$row['CD_Name'].'"/></list>';}<br /> ?>