php 查询语句select count(*) from 表 where type='文艺生活';怎么输出结果
$sql="select count(*) from 表 where type='文艺生活'";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result)){
?>
<br /> $sql="select count(*) as `cnt` from 表 where type='文艺生活'";<br /> $result=mysql_query($sql);<br /> if($row=mysql_fetch_array($result)){<br /> ?><br /> <td height="25" align="center" valign="middle"> <?php echo $row['cnt']?> </td><br /> <?php<br /> }<br />