Hi
I posted something about this awhile back and the problem was, I was preforming several queries at once along with some other mysql functions and it always stopped working half way (I think was to do with the interaction of my functions with the header or my use of multiple queries within a loop).
The only solution I personally came up with was to cut the code in half and let buttonA do jobA and buttonB do jobB.
I dont want to bore people with just copy and paste 2/300 lines of code so I will break it down into simple point notation which may reveal the problem (hopefully :():
BUTTON A
- header(refresh)
- variable intialization
- for loop
-- update query
- break
BUTTON B
- header(refresh)
- variable intialization
- update query
- while(mysql_fetch_asoc)
-- condition statements
-- for loop
--- update query
- break
Goal: BUTTON AB does everything stated above.
Thankyou in advance, Regards X
PS: the previous thread http://www.daniweb.com/forums/post646916.html#post646916