1. CREATE TABLE `cms_pm` (id int(50) NOT NULL AUTO_INCREMENT,
  2. FROM char(20), TO char(20), title char(50), message text, PRIMARY KEY(id))


a zamiast upragnionej biggrin.gif tabeli dostaję:

Cytat
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 'to char(20), title char(50), message text, PRIMARY KEY(id))' at line 1


gapię się na ten kod już od ósmej i nie widzę żadnego błędu

rozwiązany:
  1. CREATE TABLE `cms_pm` (id int(50) NOT NULL AUTO_INCREMENT, message_
  2. FROM char(20), message_to char(20), message_title char(50), message_text text, PRIMARY KEY(id))


pola źle nazwałem