In un mio script php quando vado ad eseguire codice mysql ottendo:
Warning: mysql_query() expects parameter 2 to be resource, boolean given in /opt/lampp/htdocs/securepastebin/index.php on line 53
Errore esecuzione query
Ho modificato il mio script in modo che mi stampi la query. Essa è:
Il database è:
Dove è l'errore?
Warning: mysql_query() expects parameter 2 to be resource, boolean given in /opt/lampp/htdocs/securepastebin/index.php on line 53
Errore esecuzione query
Ho modificato il mio script in modo che mi stampi la query. Essa è:
Codice:
INSERT INTO `database` (`id`, `pid`, `created`, `expire_after`, `toexpire`) VALUES (`NULL`, `vB11elB5yO5J1CJsVsiFLP2BW2VUAPpw`, `ewAyRiBgqk8euwc=`, `1336565792`, `1336567592`, `1`
Il database è:
Codice:
CREATE TABLE IF NOT EXISTS `database` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` text COLLATE utf8_unicode_ci NOT NULL,
`created` text COLLATE utf8_unicode_ci NOT NULL,
`expire_after` text COLLATE utf8_unicode_ci NOT NULL,
`toexpire` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
Dove è l'errore?