判斷查詢時(shí),有結(jié)果,但也提示錯(cuò)誤
$where['age']=array(array('gt',22),array('lt',25));
結(jié)果:Array ( [0] => Array ( [id] => 4 [username] => 小唐 [sex] => 男 [age] => 24 ) )
雖然查詢出來了,但是trace里面有一個(gè)錯(cuò)誤提示:
[2] strtoupper() expects parameter 1 to be string, array given C:\wamp\www\TPweb\ThinkPHP\Lib\Core\Db.class.php 第 508 行.
不要緊嗎?
2015-01-15
你那行的strtoupper是用的不對嗎- -。
2015-01-15
strtoupper($str);