求高手解决问题
$query = "select count(content_no) from file_content where content_no>=2011001 and sort_id=2";$cursor = exequery($connection ,$query);
下面我该怎么样获取到这个统计值?
应该不是¥cursor这个吧?
$query = "select count(content_no) as C_NO from file_content where content_no>=2011001 and sort_id=2";
$cursor = exequery($connection ,$query);
$ROW = mysql_fetch_array( $cursor );
$COUNT_NO= $ROW['C_NO'];
$COUNT_NO 就是你要的结果了。 $query = "select count(content_no) as C_NO from file_content where content_no>=2011001 and sort_id=2";
$cursor = exequery($connection ,$query);
if($ROW = mysql_fetch_array( $cursor ))
{
$COUNT_NO= $ROW['C_NO'];
}
echo $COUNT_NO; 爱死你了,这么好的帖子要顶的
static/image/common/sigline.gif
太平洋国际教育中心办真大学学历,办本科学历,办大专学历,办自考学历,办专科学历,办理统招学历,办理成人学历www.daqchina.net
页:
[1]