这是之前写的一个,现在要对这个进行排序了, 查询语句如下: $query = "select goodsid,goodsname,goodscompany,goodsprice,memberprice,goodsmake,goodsisbn,goodsaigoif,goodsauthor,goodsaigoif,goodsabout,goodsidea,goodspara,goodspicurl from goods where (goodstype='0岁-3岁') and (commendindex='是') order by goodsid limit 2 "; 要求查出最后加入的2条数据!
查询语句如下:
$query = "select goodsid,goodsname,goodscompany,goodsprice,memberprice,goodsmake,goodsisbn,goodsaigoif,goodsauthor,goodsaigoif,goodsabout,goodsidea,goodspara,goodspicurl from goods where (goodstype='0岁-3岁') and (commendindex='是') order by goodsid limit 2 ";
要求查出最后加入的2条数据!
将字串前后颠倒。
使用范例 下例的传回字串为 "gneP nosliW"<?
$str=strrev("Wilson Peng");
echo $str;
?>