Prikazi cijelu temu 26.03.2020 00:18
Avko Van mreze
Administrator
Registrovan od:28.05.2014
Lokacija:zagreb


Predmet:CRUD ne radi mi
--
-- Table structure for table `products`
--

PreuzmiIzvorni kôd (Text):
  1. CREATE TABLE IF NOT EXISTS `products` (
  2.   `id` int(11) NOT NULL AUTO_INCREMENT,
  3.   `name` varchar(128) NOT NULL,
  4.   `description` text NOT NULL,
  5.   `price` double NOT NULL,
  6.   `created` datetime NOT NULL,
  7.   `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  8.   PRIMARY KEY (`id`)
  9. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;


--
-- Dumping data for table `products`
--

PreuzmiIzvorni kôd (Text):
  1. INSERT INTO `products` (`id`, `name`, `description`, `price`, `created`, `modified`) VALUES
  2. (1, 'Basketball', 'A ball used in the NBA.', 49.99, '2015-08-02 12:04:03', '2015-08-06 06:59:18'),
  3. (3, 'Gatorade', 'This is a very good drink for athletes.', 1.99, '2015-08-02 12:14:29', '2015-08-06 06:59:18'),
  4. (4, 'Eye Glasses', 'It will make you read better.', 6, '2015-08-02 12:15:04', '2015-08-06 06:59:18'),
  5. (5, 'Trash Can', 'It will help you maintain cleanliness.', 3.95, '2015-08-02 12:16:08', '2015-08-06 06:59:18'),
  6. (6, 'Mouse', 'Very useful if you love your computer.', 11.35, '2015-08-02 12:17:58', '2015-08-06 06:59:18'),
  7. (7, 'Earphone', 'You need this one if you love music.', 7, '2015-08-02 12:18:21', '2015-08-06 06:59:18'),
  8. (8, 'Pillow', 'Sleeping well is important.', 8.99, '2015-08-02 12:18:56', '2015-08-06 06:59:18');

kod je zakacen u zip datoteku.

Javlja mi gresku u index.php lin 50

Connection error: could not find driver
Fatal error: Call to a member function prepare() on a non-object in C:\wamp\www\cms\index.php on line 50

ako netko zna molio bih lijepo odgovor. Malo proucavam primjere sa interneta.
Ovaj je sa LINK

Prilozi:
cruid.zip
Preuzimanja:217
Velicina datoteke:8.74 KB


zivot je moja domovina.