I am able to repair the problems... but then they happen again. And it is at random times. as I mentioned, I got 300,000 records before I ever encountered any problem, then it happened twice, and it hasn't happened since. All that, with no change in code.
I read something on the MySQL site about random table corrruption associated with the 2.2.14 linux kernel. Something about the I/O implementation. maybe upgrading to a new kernel will help my problem.