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.
我主要关心的是在我的数据库表中插入、更新和删除记录的安全性。
如果我使用以下代码:
$sql_room = "UPDATE `lf_rooms` SET room_count`=$room_count WHERE id = $room_id"; mysqli_query($con, $sql_room);
这是安全的还是我需要使用准备语句?