thanks for your message
i had already integrated some code (RAW)
maybe some will help me out make the basic working
i know the coding is not the best but i wil optimize if working
http://pastebin.com/4HPm7fTx
http://pastebin.com/DAmJ8jsq
CREATE TABLE IF NOT EXISTS
messages
(
id
int(11) NOT NULL AUTO_INCREMENT,
title
varchar(255) DEFAULT NULL,
message
text NOT NULL,
from
int(11) NOT NULL,
to
int(11) NOT NULL,
from_viewed
tinyint(1) NOT NULL DEFAULT '0',
to_viewed
tinyint(1) NOT NULL DEFAULT '0',
from_deleted
tinyint(1) NOT NULL DEFAULT '0',
to_deleted
tinyint(1) NOT NULL DEFAULT '0',
from_vdate
datetime DEFAULT NULL,
to_vdate
datetime DEFAULT NULL,
from_ddate
datetime DEFAULT NULL,
to_ddate
datetime DEFAULT NULL,
created
datetime NOT NULL,
PRIMARY KEY (
id
)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;