MikeHayes85
Programmer
Just created a db with no problems but I cant insert any data. This code is not inserting into my db and I cannot find the reason.
No errors messages are received. The connect info, password, name, etc., is all correct.
I have tried other syntax versions but to no avail.
$sql = "
INSERT INTO books
SET
book_number = '$book_number',
author_sn = '$author_sn',
author_fn = '$author_fn',
title = '$title',
price_e = '$price_e',
price_c = '$price_c',
type = '$type',
image = '$image',
conditi = '$conditi',
postage = '$postage'";
Thanks.
No errors messages are received. The connect info, password, name, etc., is all correct.
I have tried other syntax versions but to no avail.
$sql = "
INSERT INTO books
SET
book_number = '$book_number',
author_sn = '$author_sn',
author_fn = '$author_fn',
title = '$title',
price_e = '$price_e',
price_c = '$price_c',
type = '$type',
image = '$image',
conditi = '$conditi',
postage = '$postage'";
Thanks.