find . -name “*.php” -exec grep “select.*database” {} \;

find php or html files

find . -name “*.[Pp][Hh][Pp]” find . -name “*.[Hh][Tt][Mm]*” 

grep contextual grep