When creating an article, you need to create its id from a date and look like this: 20180926203005 (year, month, day, hour, minute, second). Is it possible?
if ($db->exec("CREATE TABLE 'article' ('id' INTEGER PRIMARY KEY AUTOINCREMENT DATE NOT NULL UNIQUE, 'title' VARCHAR(20), 'category' INT(3), 'date' VARCHAR(50))")) $id = date('YmdHis'); if($db->exec("INSERT INTO user VALUES ('$id','Title Article',Category1,'date('YmdHis')')")) This design does not work.
idalone. - user207618