$query = "SELECT * FROM zaak where naam LIKE '%".$_POST['search']."%' OR betaling LIKE '%".$_POST['search']."%' OR tel LIKE '%".$_POST['search']."%' OR email LIKE '%".$_POST['search']."%' OR website LIKE '%".$_POST['search']."%' OR straat LIKE '%".$_POST['search']."%' OR huisnr LIKE '%".$_POST['search']."%' OR postcode LIKE '%".$_POST['search']."%' OR stad LIKE '%".$_POST['search']."%' OR provincie LIKE '%".$_POST['search']."%' OR keuken LIKE '%".$_POST['search']."%' OR info LIKE '%".$_POST['search']."%' OR txt LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."'";
$query = "SELECT * FROM zaak where naam LIKE '%".$_POST['search']."%' OR betaling LIKE '%".$_POST['search']."%' OR tel LIKE '%".$_POST['search']."%' OR email LIKE '%".$_POST['search']."%' OR website LIKE '%".$_POST['search']."%' OR straat LIKE '%".$_POST['search']."%' OR huisnr LIKE '%".$_POST['search']."%' OR postcode LIKE '%".$_POST['search']."%' OR stad LIKE '%".$_POST['search']."%' OR provincie LIKE '%".$_POST['search']."%' OR keuken LIKE '%".$_POST['search']."%' OR info LIKE '%".$_POST['search']."%' OR txt LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."'";
Hij zoekt op alles behalve op de provincie...
Kan iemand me even helpen?
$query = "SELECT * FROM zaak where naam LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR betaling LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR tel LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR email LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR website LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR straat LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR huisnr LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR postcode LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR stad LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR keuken LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR info LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR txt LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."'";
$query = "SELECT * FROM zaak where naam LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR betaling LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR tel LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR email LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR website LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR straat LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR huisnr LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR postcode LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR stad LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR keuken LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR info LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."' OR txt LIKE '%".$_POST['search']."%' AND provincie='".$_POST['provincie']."'";