I have a problem with MySQL data types, somehow.
I created a dbt using
$query = "CREATE TABLE IF NOT EXISTS fiklebut (
id SMALLINT NOT NULL AUTO_INCREMENT,
date DATE NOT NULL,
time TIME NOT NULL,
amount VARCHAR(32) NOT NULL,
yourid VARCHAR(32) NOT NULL,
extrainfo VARCHAR(32) NOT NULL,
chargeid VARCHAR(32) NOT NULL,
PRIMARY KEY (id)
)";
Then I tried to write a line of data
$date="2017-12-17";
$time="10:15:34";
$amount="514.27";
$yourid="newton motors";
$extrainfo="cylinder liners";
$chargeid="qwertyuiokl";
$query = "INSERT INTO runner VALUES(NULL, $date, $time, $amount, $yourid, $extrainfo, $chargeid )";
But it says I have got my syntax wrong :
Database access failed: 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 ':15:34, 514.27, newton motors,
cylinder liners, qwertyuiokl )' at line 1
I am not sure why