Like serve per le stringhe.
Ti basta usare l'uguale per il confronto.

select * from tabella where campodata = '$data';