kriska
Posts: 18
|
| Posted: 11/27/2009, 2:39 AM |
|
hi all,
I'm new to the code charge so i dont know much about the soft ware.
I'm trying to create a messaging system inside a site. so i just want to pass the user it to the message table which i created to store the message data in the messaging system.
i used the msg_to_name to enter the user name and it contains the auto complete feature. i just need to insert the msg_to_id which is the user id of the receiver. so i try to insert a hidden text box to do that. but i was failed. so any one can help me on this matter.
I got another problem also. i just need to add the compose mail data to the draft table when user click a button(named as add to draft). so there on the button on click event i used
$db = new clsDBConnection1();
$SQL = "INSERT INTO draft (msg_to_name,msg_title,msg_body,msg_from_name,msg_id) ".
"VALUES (". $db->ToSQL(CCGetFromGet("msg_to_name",0),ccsInteger) .",". $db->ToSQL(CCGetFromGet("msg_title",0),ccsInteger) .",". $db->ToSQL(CCGetFromGet("msg_body",0),ccsInteger) .",". $db->ToSQL(CCGetFromGet("msg_from_name",0),ccsInteger) .",". $db->ToSQL(CCGetUserID(),ccsInteger) .")";
but it doesn't work.
could you please anyone can help me on this matter.
thank you
regards
kriska
|
 |
 |
|