Hey there I have this snippet and I am having trouble deducing the correct syntax for it. It is helping me search my DB and I cannot seem to get it. Any help is appreciated. Thanks!
Here is the snippet its a PHP portion searching m y MySQL DB
$query = mysql_query("SELECT e.event_name, v.venue_name FROM tie_in.events e LEFT JOIN tie_in.venues v ON v.venue_id = e.venue_id WHERE e.event_name = '%.$uniqueId.%' OR v.venue_name = '%.$uniqueId.%' ORDER BY e.event_time");
There area that I am having trouble with is the wrapping of the $uniqueId
handler. How would I wrap this properly with parentheses etc to have the proper syntax to complete the function?
Thanks!