So I'm storing a hidden-field time() call with each entry to my DB. The only problem is, they all come out as:
16777215
which is from 1970. I can't tell why that number, because it's not the beginning or end of the current timestamp, and it's the same for every entry. It's going into a mediumint(50) MySQL column, and the field looks as so:
<input type="hidden" name="time" value="<?php echo time(); ?>">
Is it a casting problem? I bet it is. Sunnuva Gun. Let me go check that...
So I changed the column to "Text" and it get's entered accurately. So if I want this to be a number to do math with it, do I need to use php to convert it to an int before I save it? And for just curiosity, why did it choose that number before?