以下MySQL查询方式是否安全?

时间:2016-12-21 12:28:43

标签: mysql mysqli

$stmt= $conn->prepare("SELECT id, title FROM tbl_question where (topic_id = $old_id) and status=1 ORDER BY RAND() LIMIT $number_question");

实际上最佳做法是什么?

0 个答案:

没有答案