You'd probably find way better performance if you just did it all in one SQL query, instead of nested PHP loops.
You'd probably find way better performance if you just did it all in one SQL query, instead of nested PHP loops.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
How would I go about doing it that way?
You wrote a MySQL query to retrieve data, right? So, change that query to include whatever logic that your comparison is trying to do, and then just output the results instead.
You can find information on writing queries in MySQL at the MySQL website: http://dev.mysql.com/doc/
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.