请问:update没有更新成功的返回值
我在在php中,想使用update更改记录,请看
$query=update filmlist set type="20L橙黄" where name="20L长效" and type="20L黄" and customer="长城"
$result=$db->query($query);/*执行查询*/
if($result==false)
{
echo "could not to the database</br>".$db->error;
}
我的记录里面没有能匹配该记录的,所以也就是没有更新成功,
但是$result返回的还是true,请问:
有什么办法判断是否有更新记录?要怎么做呢?