Is this correct to get an inserts error in mysql php?

前端 未结 0 1390
梦毁少年i
梦毁少年i 2021-01-29 21:56

I\'m wondering if this code is safe to get an error of an insert

$db->query("INSERT ........);

if($db->error){
......
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题