dont execute this
echo "INSERT INTO temp('t_nama','t_harga','t_jumlah','t_total') VALUES('$nama_b','$harga_b','$jumlah_b','$total_b')"
just put this line in your code after 35th line.
Run this page in browser.
copy the printed query from your browser and execute this in phpmyadmin
Yeah done it and gives me error :
INSERT INTO temp( 't_nama', 't_harga', 't_jumlah', 't_total' )
VALUES (
'Kabel merah', '3000', '9', '27000'
)
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''t_nama','t_harga','t_jumlah','t_total') VALUES('Kabel merah','3000','9','27000'' at line 1
just to mention my type of data:
t_nama=varchar
t_harga=int
t_jumlah=int
t_total=int
thx b4..