0
unset($item_row);
$item_row = array();
if ($row[1] == "BCP-Prod1"){
$row[1] = "BCP-Product1";
$item_row['nid'] = 71;
$item_row['title'] = 'Product1 - This is the title';
} elseif ($row[1] == "BCP-SILLYNECK"){
$row[1] = "BCP-Prod2";
$item_row['nid'] = 77;
$item_row['title'] = 'Products2 - This is the title for 2';
}
我得到的错误是:意外T_STRING
Parse error: parse error, unexpected T_STRING in import_orders.php on line 89
89号线是$item_row['nid'] = 71;
我必须找过的东西,因为我没有看到是什么原因造成的?
听起来像在前面一行中丢失的分号(;)。在这段代码中我没有看到它。 – Cfreak 2010-11-15 16:49:15
语法看起来不错 – 2010-11-15 16:49:29
一切正确。你确定你正在寻找正确的代码吗?最好将它粘贴到pastebin上,以获得完整的视图。 – AlexanderMP 2010-11-15 16:50:30