Its really wierd, I repaired the file again and it worked fine:
myisamchk -r PRODUCTS;
- recovering (with sort) MyISAM-table 'PRODUCTS'
Data records: 1914
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4
- Fixing index 5
- Fixing index 6
- Fixing index 7
- Fixing index 8
- Fixing index 9
- Fixing index 10
- Fixing index 11
- Fixing index 12
And then I checked it and nothin is wrong:
myisamchk -m PRODUCTS;
Checking MyISAM file: PRODUCTS
Data records: 1914 Deleted blocks: 0
- check file-size
- check key delete-chain
- check record delete-chain
- check index reference
- check data record references index: 1
- check data record references index: 2
- check data record references index: 3
- check data record references index: 4
- check data record references index: 5
- check data record references index: 6
- check data record references index: 7
- check data record references index: 8
- check data record references index: 9
- check data record references index: 10
- check data record references index: 11
- check data record references index: 12
- check record links
But when I try to update any of the fields that are text or varchar it gives me this error:
ERROR 1034: Incorrect key file for table: 'PRODUCTS'. Try to repair it
I don't understand why it will let me update int fields, but not varchar or text fields?