Create and attach excel file into an email from data fetched from database -- 2

Job ID: 33271757

Budget: $10 – $30 USD

Need a script that searches in database and create a xls file and attach that into a mail and send it based on specific search criterias.
Today i have 2 different scripts
1. script that do the specific search but only counts hits in database and insert that number into an email and send it
2. script that export search based on specific parameters and output as xls file

So you have little scripts as demo for this work so it needs to be combined and rebuild insted of output xls file it should attach into an email instead.

Any questions just ask
Related categories: PHP Visual Basic Excel Software Architecture MySQL