ermm...
Why not have the DB do this for you?
There's a handy feature for fields called a 'DEFAULT' value.
Just go into your MySQL table and change the default value to whatever you want it to be and tehn when you insert data into the row and that value is not set, it will just insert the default automagically.
...of course you'll need to set the field to 'NOT NULL' as well...