I am assigning a variable a numeric value or writing a NULL to it with an if statement, if it's 0.00.
When writing to MySQL from my PHP page, I'm trying to pass this value and it always writes 0.00 for NULL. I'm guessing that's because my insert statement is sending .$price. and it sees it as being in quotes?
If I echo $price before the insert, it shows me that it's NULL but after the insert statement, it never remains.
How can I insert a NULL.. since I have to use a variable and send a value if there is one?