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."; }
希望有帮助。
<meta(是在表单字段中输入的内容)通过 jQuery ajax 提交的表单
<meta
在我的开发服务器(php 5.3.5)上它工作正常。在生产服务器(php 5.3.27)上,它返回 406。
我似乎无法在开发服务器上解决此问题,因为服务器在调用 php 之前返回 406。
当没有提交表单数据时<
<