->Hi Daniweb-Web Developers.
->I'm using PhP 5.2.5,WAMP 5,MySQL 5.
-I'LL TRY TO EXPLAIN IN DETAILS THE WHOLE STORY:-
-------------------------------------------------
1: I've declared a global variable dynamic array ALPHABETS_COMBINATION.
2:It is populated with a group of 3 Alpha combination AAA-ZZZ in a function : Generator($ALPHABETS)
3:Once the Buttonn click event is triggered I count the records in My table 'Items' to get the total of records
4:And For each record the Function is called to generate the combination and pick one for a record say record 1
5:The picked combination is then checked in another table 'Cat' to see if it exists
6:If it does exist the function produces another combination for the same record 1
7:If the combination does not exist in table 'Cat' then the record is assigned the combination and saved in the 'Cat' table
8:Then the process is repeated for the next record in 'Items' table for say record 2
--------------------------------------------------
->Now this is where I get the error:
Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 35 bytes) in C:\wamp\www\My_Site_Name\My_Classes\class_bulk_data.php on line 423 (Where the variable is being repopulated with alphabet combinations for the next record)
->I have tried to use:
ALPHABETS_COMBINATION=null
unset(ALPHABETS_COMBINATION)
ALPHABETS_COMBINATION=array()
->All wont do every time the next recor start it produces the same error any advice what should I do?
->Any help will be appreciated...