主攻帝国 全栈为辅

帝国cms万能通用api接口使用之获取一条表的数据

使用万能通用api接口获取数据表的一条记录。

函数模型:

lsk::getrow($tbname,$wa,$fstr);

解释:

$tbname:为不带后辍的表名

$wa:为条件数组,比如 array('classid'=>1,'id'=>2);//会解析成where classid=1 and id=2

$fstr://为查查询的字段列表,以,分隔,不写则为*,即全部,比如id,classid,title,tiltepic等。