摘要:
1,select count(*) as number from admin //查询数据表里面数据总数;as:只为字段数据起别名2,获取数据列表$date=array();while($row=mysql_fetch_assoc()){ }$date[]=$row 阅读全文
posted @ 2012-12-24 21:17
shangshuc
阅读(184)
评论(0)
推荐(0)
摘要:
1,数据库select * from news where title '%中义%' or '%工程%' //这里like'%中义%' 是一个条件 , 而'%工程%' 单独是一个条件。 //如果要查找 中义 或 工程 ,则必须用select * from news where title like '%中义%' or title like '%工程%'2,查数select count() from news //查找数据表中条数。3,修改语句update product set content= 阅读全文
posted @ 2012-12-24 19:58
shangshuc
阅读(128)
评论(0)
推荐(0)
浙公网安备 33010602011771号