又遇见一个小问题,求救
我的sql语句如下:select id,left(title,20),author,left(body,100),date from entries order by id desc limit 3我直接用命令行运行可以,但是网页上却提示这样的错误:
A PHP Error was encounteredSeverity: NoticeMessage: Undefined property: stdClass::$titleFilename: views/page.phpLine Number: 19
请大家帮忙看看出了什么问题. ...貌似没人,我还是用substr()这个php函数算了. select id,left(title,20) as title_left,author,left(body,100) as body_left,date from entries order by id desc limit 3
请注意alias~~别名才可以提取。 回复 3# sonic
:handshake
感激不尽....
以后还请继续关照. 回复 4# sylier
别客气呀,互相学习
页:
[1]