Create basic search code from mysql