mySqli Bind Parameter LIKE with Wildcard
I'm having issues binding the LIKE with Wildcard into my prepared statement in MySQLi. I tried both the following methods below as shown & concat.(updated with @fancyPants input) Is there a way so that I can view my own SQL statement after the binding happens? How do I bind it properly to get the result I want ? It works without the LIKE statement. I could only pull out data from using a certain search term. Is there anything wrong with my code? $str = $_POST["searchstr"]; if(isset($_POST['submit'])) { $price=$_POST['price']; if(!empty($_POST['chkbx'])) { foreach($_POST['chkbx'] as $selected)