The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
need some help with this one, ive been tinkering and still cant get it to work>_<
Quote:
PHP Code:
|
|
#2
|
||||
|
||||
|
What kind of value will be inserted for receiver? An ID or a username?
Try this: Code:
$DB_site->query("INSERT INTO ".TABLE_PREFIX."chat_messages (channel_id,chatter,chatter_id,chat_msg,msg_dateline,receiver,msg_private) VALUES (" . intval($msginsert['ch']) . ", '".addslashes($msginsert['chatter'])."'," . intval($msginsert['chatter_id']) . ", '".addslashes($msginsert['message'])."', ".TIMENOW.", '$msginsert[receiver]', '$msginsert[private]')");
|
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
||||
|
||||
|
Quote:
Code:
$DB_site->query("INSERT INTO ".TABLE_PREFIX."chat_messages (channel_id,chatter,chatter_id,chat_msg,msg_dateline,receiver,msg_private) VALUES (" . intval($msginsert['ch']) . ", '".addslashes($msginsert['chatter'])."'," . intval($msginsert['chatter_id']) . ", '".addslashes($msginsert['message'])."', ".TIMENOW.", " . intval($msginsert['receiver']) . ", '$msginsert[private]')");
|
|
#5
|
||||
|
||||
|
fixed it
|
|
#6
|
||||
|
||||
|
ok well it runs the query but my function isnt working
![]() here is my code: PHP Code:
|
|
#7
|
||||
|
||||
|
anyone.....
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|