I have just experienced a very odd problem and although I have it more or less resolved I am curious if any of you might have any clue what would cause such a thing because I certainly don't have any idea. Here is what happened.
Background.
I have a MySql database with quite a few tables in it. One of the tables is used to add things to inventory. It is called purchases. Basically it adds a line to the table for each item that you are replenishing in inventory. It stores the item number and the quantity, the date and a field for it if has been added to inventory. This has been working fine for a couple of years. It allows you to print price labels for the items that you are adding to inventory.
Today
it all of a sudden started giving an internal server error when you selected more than 10 lines from the database to print labels. 9 lines it would print fine. Day before yesterday it was working fine did well over 50 lines no problem. So I started trying to figure out what is going on. Finally narrowed it down to something to do with the table although I can see nothing wrong with the table. I have this whole system running in a mirror on my local system and online. When I exported the table and put it on my system I started getting the error. Working on the local system, I deleted all the items that were added today and the error goes away. Then I tried adding back a few at a time to try and find the line that apparently was the issue. Somehow I ended up adding back everything and it was still working fine. Tried to export from my local system to the online system and I stll get the error. Delete today's stuff error goes away. So I though hmm. Tried deleting stuff before the beginning of May instead of todays stuff. And it still works. So apparently the problem is not in one of the lines added today. Since the id numbers of the items added today did not change it has nothing to do with the program blowing up at some id number or something weird like that.
Does anyone have any clue what could cause something like this?