Code:
$vbulletin->db->query("INSERT INTO " . TABLE_PREFIX . "ph_order " . "(`userid`,`username`,`itemid`,`itemname`,`itemtype`,`productid`,`productname`,`price`,`quantity`,`date`,`length`,`active`) " . "VALUES ( '" . intval($user[0]) . "', '" . intval($user[1]) . "', '" . intval($item['id']) . "', '" . $db->escape_string($item['name']) . "', '" . intval($type) . "', '" . intval($product['id']) . "', '" . $db->escape_string($product['name']) . "', '" . db->escape_string($item['price']) . "', '" .intval($temp[1]) . "', '" . time() . "', '" . intval($item['length']) . "', '1')");
it is giving me this
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\xampp\htdocs\purchase.php on line 369
for this line in my php file was wondering what i am doing wrong