another strange thing is that if i comment out line 57 it still shows the same error in line 57
Printable View
another strange thing is that if i comment out line 57 it still shows the same error in line 57
Server or Browser caching?
All these instances should look like these:PHP Code:
(strrchr([$product_name][$i]
:wink2:PHP Code:
(strrchr($product_name[$i]
Parse error: syntax error, unexpected ',' in /home/tower/public_html/admin/quick_add_products.php on line 54Code:if(strrchr($product_name[$i], '\\'))$image = substr(strrchr($product_image[$i])), '\\', 1;else $image = substr(strrchr($product_image[$i])), '/', 1;
else $image = substr(strrchr($product_image[$i])), '/', 1;
If you put the closing brackets in the right place, it might work better?
Perhaps you mean
else $image = substr(strrchr($product_image[$i], '/'), 1);
returns the same error
Make a backup of the file.
On the error block you mentionned, if you replace it with this one:
Will it still return the same error message ?PHP Code:
if (eregi('\\', $product_name[$i])) {
$image = substr($product_image[$i], 1);
} else {
$image = str_replace('\\', '/', $image);
$image = substr($image, 1);
}
thx oracle that code seems to have worked ...
next error lol
Parse error: syntax error, unexpected T_STRING in /home/tower/public_html/admin/quick_add_products.php on line 66
note there is only a few lines left of code before it starts to display the page... hopefully this will be all that faults...Code:$db->Execute("INSERT INTO " . TABLE_PRODUCTS_TO_CATEGORIES . " VALUES ('" . $products_id->products_id . "', '" . $product_categories[$i] . "'));
to:PHP Code:
$db->Execute("INSERT INTO " . TABLE_PRODUCTS_TO_CATEGORIES . " VALUES ('" . $products_id->products_id . "', '" . $product_categories[$i] . "'));
PHP Code:
$db->Execute("INSERT INTO " . TABLE_PRODUCTS_TO_CATEGORIES . " VALUES ('" . (int)$products_id->products_id . "', '" . $product_categories[$i] . "')");
still same error