How to use whitelists and prepared-statements with Postgresql in php?
问题 I understand that I need to implement whitelists and prepared-statements into my php code. But I'm not sure how to do this with Postgresql and is it really necessary for my code? I'm using select lists to pass the users selected values to the query. <?php include "connect.php"; $table = $_POST['tableSelected']; $field = $_POST['fieldSelected']; $attribute = $_POST['attributeSelected']; $operator = $_POST['operatorSelected']; $fieldList = $_POST['fieldList']; $fieldstr = $fieldList . ",ST