I do not know if this is possible:
SELECT * FROM stuff WHERE barcode = '123123' OR product like '%123123%'
Suppose this returns 10 rows. Two out of 10 lines were returned because they had 123123 in the barcode.
Now it is possible to somehow make an alias / variable to know that it is coming, because it matches the barcode.
So what can I do:
if($MatchWasFromBarcode) {.... }
Or do I need to make 2 requests for this?
Karem source share