hallo. mal wieder eine lustige geschichte rund um SQL:
so siehts aus:
wenn ich exakt diesen schnipsel in phpmyadmin machen lasse geht es. mache ich aber
kommt folgendes:
"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 '; INSERT INTO `testnl_countries` VALUES (1, 'Germany', 'Germany.gif')' at line 6"
www.ratlos.com =/
MfG
so siehts aus:
PHP-Code:
$sql = "CREATE TABLE `testnl_countries` ( `id` int(50) NOT NULL auto_increment, `name` varchar(50) NOT NULL, `flag` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) AUTO_INCREMENT=43 ;
INSERT INTO `testnl_countries` VALUES (1, 'Germany', 'Germany.gif');
..........
PHP-Code:
mysql_query($sql)
"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 '; INSERT INTO `testnl_countries` VALUES (1, 'Germany', 'Germany.gif')' at line 6"
www.ratlos.com =/
MfG
Kommentar