$sql = "SELECT text,pic FROM newstable where type='在线报修上广告' order by id desc limit 0,1";
but you may find the return value is null
But i try to use this
$sql = "SELECT text,pic FROM newstable where type=N'在线报修上广告' order by id desc limit 0,1";
there is N before '在线报修上广告' ------->>>>>but it works....what's the meaning of this 'N'!!