The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Updating old product need a little help with SQL Syntax
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')"); 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 |
#2
|
||||
|
||||
PHP Code:
|
#3
|
||||
|
||||
thank you
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|