$wpdb prepared with search term

After a million tries I finally found it…

$result = $wpdb->get_results($wpdb->prepare("SELECT id, geslacht, voornaam, familienaam, email, tel, afile, app_datum FROM sollicitatie_form WHERE voornaam = %s", $zoekvn));

I guess when you found the solution yourself you’re less likely to forget it 🙂

Leave a Comment