Database contents setting themselves to 0

Posted by Luis Armando on Stack Overflow See other posts from Stack Overflow or by Luis Armando
Published on 2011-02-10T06:53:42Z Indexed on 2011/02/10 7:25 UTC
Read the original article Hit count: 185

Filed under:
|
|
|
|

I have a Database that contains 4 tables, however I'm using 1 of them which is separated from the others.

In this table I have 4 fields which are varchar and the rest are ints (11 other fields), when the users fill up the DB everything gets saved correctly, however it has happened 3 times so far that the database values for the int's reset to 0 without any apparent reason. At first, I thought, it was because those fields (where the numbers should go) were varchars not ints. However since I changed it, it happened again. I've already double checked my code and I have nothing that even updates or inserts a 0 value. Also I'm using codeigniter and active records which protect against SQL injections AND have XSS filtering enabled, could anyone point out something I might be missing or a reason for this to be happening?

Also, I'm pretty sure about the answer of this but, is there ANY way to recover some data?? Other than having to ask everyone to fill in everything again.. =/

** EDIT **

The Storage Engine is MyISAM and Collation is latin1_swedish_ci, Pack Keys are default, for all intents and purposes it's a normal DB

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql