<?php $sql = "CREATE TABLE `ban` ( `id` int(11) NOT NULL auto_increment, `ip` varchar(255) NOT NULL default '0', PRIMARY KEY (`id`) ); CREATE TABLE `pages` ( `id` int(11) NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `text` text NOT NULL, PRIMARY KEY (`id`) ); "; ?>
Jedną tabele w zapytaniu moge dodać, ale już drugiej nie. Zapytanie na pewno do bani bo wyskakuje mi błąd:
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 '; CREATE TABLE `pages` ( `id` int(11) NOT NULL auto_increment, `title` var' at line 5
W jaki sposób można dodać kilka tabel, albo jak to zrobić np includując plik baza.sql
Z góry dziękuje za odpowiedź