I'm in need of some coding help..
I have a PHP page that has a bunch of drop down boxes that ask for a start date and hour, an end date and hour and a hostname.
Well, everything thus far has been OK because I didn't really have to use any dynamic content, until now. I would like to populate the HOSTNAME drop down box to read from MySQL database. The problem is that the data is stored as such:
2005-05-25 02:02:33 / 35.3918 / patrolreport / NT_CPU / CPU_1 / CPUprcrUserTimePercent
2005-05-25 02:02:33 / 517.033 / patrolreport / NT_CPU / CPUTotal / CPUprcrInterruptsPerSec
2005-05-25 02:02:33 / 4.16342 / patrolreport / NT_CPU / CPUTotal / CPUprcrPrivTimePercent
2005-05-25 02:02:33 / 27.1206 / patrolreport / NT_CPU / CPUTotal / CPUprcrProcessorTimePercent
2005-05-25 02:02:33 / 22.9572 / patrolreport / NT_CPU / CPUTotal / CPUprcrUserTimePercent
"patrolreport" is the actual hostname, and the data in the database refers to it on every single row. Now, I'm assuming that if I do go through with it, I'll have a HUGE drop down of multiple hostname entries with the same name. Is there anyway I can just have it display once?
thanks,
los