I have been trying to get my MySQL database to apply a default value when an empty form field is submitted (this has worked for me on other servers), but it does not work on the server I am currently working on.
The ISP admin has suggested that I write a php script (rather that have them modify their MySQL installation) to write the value I want to specify when an empty form field is submitted.
There 12 columns in the table I am writing to. I was trying to set up some sort of array, rather than handle all the variables 1 at a time, but I have had no luck so far.
Anyone have any ideas?
The ISP admin has suggested that I write a php script (rather that have them modify their MySQL installation) to write the value I want to specify when an empty form field is submitted.
There 12 columns in the table I am writing to. I was trying to set up some sort of array, rather than handle all the variables 1 at a time, but I have had no luck so far.
Anyone have any ideas?