PDA

View Full Version : Array[message]


sabret00the
10-21-2005, 09:23 PM
whenever i try and do this query

$db->query_write("
INSERT INTO confessions(text,userid,visible,timestamp)
VALUES ('$vbulletin->GPC[message]','$vbulletin->GPC[conf_userid]',0," . time () . ")
");

i get this message "Array[message]" for the text field, what am i doing wrong?

Paul M
10-21-2005, 09:28 PM
Try ;


$db->query_write("
INSERT INTO confessions(text,userid,visible,timestamp)
VALUES ('".$vbulletin->GPC['message']."','".$vbulletin->GPC['conf_userid']."',0," . time () . ")
");

sabret00the
10-21-2005, 09:33 PM
worked a treat ta :)