I only know php, have not yet set up ALPR. So the answer definitely is not the optimal.
But for starter, maybe you can have a php script that watches the alpr log file, extract the last few plate read, and do the mysql compare there? if the mysql compare is a hit, then output the image and the...