调试SQL与变量
发布时间: 2014-04-04 15:52 浏览:6117
$list = M('type')->select();
echo M('type')->getLastSql(); //显示模型生成的SQL
var_dump($list); 或 print_r($list); //调试变量
发布时间: 2014-04-04 15:52 浏览:6117
$list = M('type')->select();
echo M('type')->getLastSql(); //显示模型生成的SQL
var_dump($list); 或 print_r($list); //调试变量