I am Querying a Database where all values are stored as VARs I am trying to do a results query based on a String Variable.
here is my query
$searchQueryString = strval($searchQuery);
$searchQueryFinal = "%$searchQueryString%";
echo $searchQueryString;
$SearchQuerySQL = "SELECT * FROM PurchaseHistory WHERE MainTicketNumbers LIKE ? ";
$SearchQuerySTMT = $conn->prepare($SearchQuerySQL);
$SearchQuerySTMT->execute([$searchQueryFinal]);
My challenge is that when i supply a numeric value to the SQL statement it returns no results. I added the strval line to try to convert the search to a string rather then an integer. Any Idea's