The website that I'm working on is dealing with PC components store. It is based on PHP & MySQL.
I developed the automated option option for our subscribers to get email with complete PC components list every 7 days.
The components and user lists are stored in MySQL database.
The problem is that automated mailing function works well let's say 9 out of 10 times, but all of the sudden it goes mad :-)
That is, when the problem occurs, the users receive incomplete price list. It seems as though the certain groups of components are just left out with no logical explanation...
I'm retreiving the components from database by their id number, and using the following array (the id's are single qouted in the brackets) I'm gererating the complete price list each group at the time.
Using foreach() to browse through this array function I just can't figure out how some groups might be omitted...
$kompo = array("Kucista" => array('01'),
"Maticne ploce" => array('02'),
"Procesori" => array('03'),
"Memorije" => array('05'),
"Graficke kartice" => array('06'),
"Hard diskovi" => array('07'),
"CD-ROM/CD-RW/DVD-ROM" => array('13'),
"Floppy diskovi" => array('08'),
"Modemi" => array('15'),
"Monitori" => array('09'),
"Tastature" => array('10'),
"Misevi" => array('11'),
"Mrezna oprema" => array('16'),
"Stampaci" => array('20'),
"Skeneri" => array('29'),
"Neprekidna napajanja" => array('88'),
"Zvucne kartice" => array('14'),
"Zvucnici" => array('19'),
"Kuleri" => array('04'),
"Oprema za igranje" => array('22'),
"Mikrofoni i sluĊĦalice" => array('90'),
"Kalkulatori" => array('31'),
"Data switch" => array('33'),
"Diskete" => array('23'),
"Kertridzi" => array('27'),
"Riboni" => array('25'),
"Toneri" => array('26'),
"Kablovi" => array('18'),
"Papir" => array('28','71'),
"Galanterija" => array('17','21','24','30','35','37','40','80','81'));