Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/07/2009, 16:19
waty90
 
Fecha de Ingreso: diciembre-2006
Mensajes: 153
Antigüedad: 17 años, 4 meses
Puntos: 1
ayuda con codigo crear tabla.

wenas, he visto en una pagina un tutorial para crear un sistema de mensajes privados, lo 1º que he echo es intentar crear la tabla, pero me da error.

error en phpmyadmin:

Código PHP:
 #1064 - 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 'message` TEXT NOT NULL ,

`fromINT11 NOT NULL ,

`
toINT11 NOT NU at line 7 

esta es la estructura:

Código PHP:
CREATE TABLE `messages` (

`
idINT11 NOT NULL AUTO_INCREMENT PRIMARY KEY ,

`
titleVARCHAR255 NULL 

`messageTEXT NOT NULL ,

`
fromINT11 NOT NULL ,

`
toINT11 NOT NULL ,

`
from_viewedBOOL NOT NULL DEFAULT '0',

`
to_viewedBOOL NOT NULL DEFAULT '0',

`
from_deletedBOOL NOT NULL DEFAULT '0',

`
to_deletedBOOL NOT NULL DEFAULT '0',

`
from_vdateDATETIME NULL ,

`
to_vdateDATETIME NULL ,

`
from_ddateDATETIME NULL ,

`
to_ddateDATETIME NULL ,

`
createdDATETIME NOT NULL

ENGINE MYISAM 
aqui esta el tutorial:

http://www.pixel2life.com/publish/tu...saging_system/


quisiera saber si es posible reparar algun error de la tabla ,o si modificando algo del codigo puedo hacerlo compatible con phpmyadmin 2.11.9.4 uso la version de php 5.2 , nose si usa register_global ON O /OFF..

gracias por su ayuda..

xao