When the following mysql query is executed,fields get populated with null instead of the value specified.
INSERT INTO invoices VALUES(
slNo='2', mrp='3', PplusT='3.375',
name='Eraser', code='002', qty='15',
unitPrice='3', rateOfTax='12.5', taxAmt='0.375',
cess='0.004', total='50.625', billNo='10001')
The table schema
slNo int(11)
mrp float
PplusT float
name varchar(50)
code varchar(10)
qty int(11)
unitPrice float
rateOfTax float
taxAmt float
cess float
total float
billNo varchar(10)
I tried the query using PHP as well as PHPMYADMIN but the result is same.
Please check the manual. Replace
VALUESwithSETYou must remove the quotes from the values for numeric data types, or it will try to insert them as strings.