Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 mysql 查询中获取消息?
前任 :
$results = $this->query("SELECT * FROM tbl.admin"); if($results){ echo 'Affected rows: 0 , 6 total results , Time: 0.001s'; }else{ echo $mysql_error; }
所以当我使用更新时,执行成功时删除查询我会得到像
“1 行受影响。”
我能怎么做 ?
谢谢并恭祝安康
你的意思是这样的吗
if (!is_bool($results)) { $num_rows= mysql_num_rows($results); echo "Number of rows returned $num_rows"; } else { echo "No rows returned."; }
希望有帮助。