I have a CRM-type website where the user inputs the unique ID in a text box on the main page then hits ENTER and the page then calls a PHP file wherein the $POST["UniqueID"]
is converted to mysqli_real_escape_string() first before attaching it to the query. The query searches for the record based on that Unique ID then displays the information.
My question here is, do I still need to worry about my query and use prepared statements to protect the query or will just using mysqli_real_escape_string() on the only user-input value keep my query safe?