Search mysqli table with form and display results
问题 I'm searching a table with a form where the result could be from any of the 3 choices (cata, catb or catc) and then display the results, however my error warning keeps popping up and can't display the result? I'm stuck... <?php include("config.php"); $cata = $_POST['cata']; $catb = $_POST['catb']; $catc = $_POST['catc']; $query = "SELECT * FROM photos WHERE cata=? OR catb=? OR catc=?"; $conn = $db->prepare($query); $conn->bind_param("sss", $cata, $catb, $catc); if ($conn->execute()) { $result