I have $temp="2006/7"; I insert this into a table field where its datatype is char(12). However, this seems to be interpreted as 2006 divided by 7 instead of putting the string in the table. Is there a way to force "2006/7" to be read as a string?
Is PHP doing this wrong or the Database? If the DB field is a char it shouldn't be the DB. Weird... But that's why I don't like the not type-safe PHP scripting language Try this in your PHP script: $temp="2006"."/7"; Kind regards, Hans
Finally got it to work. I had set the default of that field to 2006/7, it was actually storing 286.57 in the database. I took the default out and $temp="2006/7"; work fine.