老師好。
前臺展示這個部分
<p class="meta">{$data.author}發布于<span class="date">{'Y-m-d H:i:s'|date:$data.dateline}</span></p>
下面是頁面顯示,其他部分都顯示出來的,但是中間部分報了個錯::
netease發布于
( ! ) Notice: A non well formed numeric value encountered in D:\wamp\www\articles\framework\libs\view\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code on line 59
Call Stack
#
Time
Memory
Function
Location
1 ? ?0.0005 ? ?366424 ? ?{main}( ) ? ?..\index.php:0 ? ?
2 ? ?0.0258 ? ?1708920 ? ?PC::run( ) ? ?..\index.php:7 ? ?
3 ? ?0.0289 ? ?1722352 ? ?C( ) ? ?..\pc.php:30 ? ?
4 ? ?0.0294 ? ?1735712 ? ?eval( '$obj=new indexController();$obj->newsshow();' ) ? ?..\function.php:5 ? ?
5 ? ?0.0294 ? ?1735904 ? ?indexController->newsshow( ) ? ?..\function.php(5) : eval()'d code:1 ? ?
6 ? ?0.0309 ? ?1762224 ? ?VIEW::display( ) ? ?..\indexController.class.php:15 ? ?
7 ? ?0.0309 ? ?1762224 ? ?Smarty_Internal_TemplateBase->display( ) ? ?..\VIEW.class.php:20 ? ?
8 ? ?0.0309 ? ?1762352 ? ?Smarty_Internal_TemplateBase->fetch( ) ? ?..\smarty_internal_templatebase.php:394 ? ?
9 ? ?0.0999 ? ?4466264 ? ?content_54505434e724f1_72355238( ) ? ?..\smarty_internal_templatebase.php:188 ? ?
10 ? ?0.0999 ? ?4466352 ? ?date ( ) ? ?..\smarty_internal_templatebase.php(157) : eval()'d code:59 ? ?
1970-01-01 08:00:00
2014-10-29
{'Y-m-d H:i:s'|date:$data['dateline']}?? 試一下這個
2014-10-31
2014-10-30
可能數據庫編碼問題。我重新把數據表刪了,重新建立了下。后面就好了。謝謝