Hi all! Hopefully something not too taxing, but has stumped me once again!
I am trying to search for data from two or more columns, but am struggling to add to the SELECT * FROM code and get results.
Code being:
if((isset($_POST[‘submit’])) && (isset($_POST[‘search’]) && ($_POST[‘search’] != NULL))) {
$search = $mysqli->real_escape_string($_POST[‘search’]);
$result = $mysqli->query(“SELECT * FROM careers2 WHERE jobTitle regexp ‘$search’”);
Searching the ‘jobTitle’ is getting results, but I would like to search both ‘jobTitle’ AND ‘jobDescription’ columns to get results.
Anything I have tried seems to stop all searches from happening
Any help very much appreciated!