Code:if(strrchr([$product_name][$i], '\\'))$image = substr(strrchr([$product_image][$i])), '\\', 1;else $image = substr(strrchr([$product_image][$i])), '/', 1;Code:if(strrchr($_POST['product_image'][$i], '\\'))$image = substr(strrchr(trim(stripslashes($_POST['product_image'][$i])), '\\'), 1);else $image = substr(strrchr(trim(stripslashes($_POST['product_image'][$i])), '/'), 1);
the 1st line of code i tried came up with this error:the 2nd line which i had a go at comes up with another error:Code:Parse error: syntax error, unexpected '[', expecting ')' in /home/tower/public_html/admin/quick_add_products.php on line 54this is line 57Code:Parse error: syntax error, unexpected T_STRING in /home/tower/public_html/admin/quick_add_products.php on line 57
i also fixed the last instances that were only in line 54Code:$products_id_query = $db->Execute("SELECT products_id from " . TABLE_PRODUCTS . " WHERE products_quantity=" . $product_quantity[$i] ." and products_model=" . $product_model[$i] ." and products_price=" . $product_price[$i] . " and products_weight=" . $product_weight[$i] . " and products_image=" . $image . " and products_status=" . $product_status[$i] . " and products_tax_class_id=" . $product_tax[$i] . " and manufacturers_id=" . $product_manufacturer[$i] . ";



