selete count(*) from kemu where zhuanye='1' selete count(*) from kemu where zhuanye='1'请教:我怎么将统计出来的属于专业1的科目的数量输出呢?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) as amount from kemu where zhuanye='1'$row=mysql_fetch_array($query);$row['amount']可以取出值。 $total=mysql_query("selete count(*) from kemu where zhuanye='1' ");$rs=mysql_fetch_array($total); //shuzu$num=$rs[0]; //记录总数echo $num; 我是用PHP+ORACLE数据库的,用这个怎么输出 请教一个form里action的问题。 用adodb类作数据库连接,支持多类型数据库(oracle和mysql)帮忙讨论 来者有分 处理一个多维数组 怎么去掉数组中重复的内容 请教中文验证的正则表达式 mysql占用CPU超过50%,有什么办法优化 怎么用php实现提交表单时验证用户的效果 请问php+zend+oracle 做为中大型网站,有问题否 php里有没有类似Java的Thread.sleep(tm) 功能? php一句话木马解释 跪求ajax开块上传的思路 请高手赐教 小弟不盛感激 php循环问题
$row=mysql_fetch_array($query);
$row['amount']可以取出值。
$total=mysql_query("selete count(*) from kemu where zhuanye='1' ");
$rs=mysql_fetch_array($total); //shuzu
$num=$rs[0]; //记录总数
echo $num;