How to make a fully dynamic prepared statement using mysqli API?
问题 I need to change this query to use a prepared statement. Is it possible? The query: $sql = "SELECT id, title, content, priority, date, delivery FROM tasks " . $op . " " . $title . " " . $content . " " . $priority . " " . $date . " " . $delivery . " ORDER BY " . $orderField . " " . $order . " " . $pagination . ""; Before the query, there's code to check the POST variables and change the content of variables in the query. //For $op makes an INNER JOIN with or without IN clause depending on the