I am trying to run this code and I get an error at line 11
CREATE TABLE IF NOT EXISTS `tblproduct` (
  `id` int(8) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `code` varchar(255) NOT NULL,
  `image` text NOT NULL,
  `price` double(10,2) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `product_code` (`code`)
)  &lt;&lt;&lt;&lt;------- put semi-colon here.


Your problem here is with the last line of your CREATE TABLE -  it should be ); and not just the bracket i.e. ) on its own! It's the sort of error that's very difficult to spot if you're trying to concentrate on the code - it's driven me mad a couple of times, I just couldn't see it! p.s. welcome to the forum!