try
foreach (file($_FILES['File']['tmp_name']) as $key => $value) ...
try
foreach (file($_FILES['File']['tmp_name']) as $key => $value) ...
where, and what would I be replacing?
Sorry about this, I really appreciate it.
replace the very first foreach loop. and the lines above it.
Still sort of getting the same result:
Array
(
[MPN Manufacturer Name UPC Product Name Product Description Product Price Product URL Image URL Dealtime.co.uk Categorisation Stock Availability Stock Description Standard Shipping Weight] => Proel 2889 19" Vented Rack Panel Available in various sizes, these panels block access into a rack but allow air to pass through for ventilation. 415.00 http://www.discostudio.co.uk/djshop/product_info.php?product_id=100709&affid=dealtime http://www.fxmedia.co.uk/images/discostudio/100709t.jpg Musical Instruments Y Next Day Delivery 0.00 0.0
)
Array
(
[MPN Manufacturer Name UPC Product Name Product Description Product Price Product URL Image URL Dealtime.co.uk Categorisation Stock Availability Stock Description Standard Shipping Weight] => Proel 2890 19" Vented Rack Panel Available in various sizes, these panels block access into a rack but allow air to pass through for ventilation. 415.00 http://www.discostudio.co.uk/djshop/product_info.php?product_id=100709&affid=dealtime http://www.fxmedia.co.uk/images/discostudio/100709t.jpg Musical Instruments Y Next Day Delivery 0.00 0.0
)
inside the main foreach loop, print out the value of $subexplode after you initialise it. it should be an array so print_r is appropriate.
Array
(
[0] => MPN Manufacturer Name UPC Product Name Product Description Product Price Product URL Image URL Dealtime.co.uk Categorisation Stock Availability Stock Description Standard Shipping Weight
)
Array
(
[0] => Proel 2889 19" Vented Rack Panel Available in various sizes, these panels block access into a rack but allow air to pass through for ventilation. 415.00 [url]http://www.discostudio.co.uk/djshop/product_info.php?product_id=100709&affid=dealtime[/url] [url]http://www.fxmedia.co.uk/images/discostudio/100709t.jpg[/url] Musical Instruments Y Next Day Delivery 0.00 0.0
)
Array
(
[0] => Proel 2890 19" Vented Rack Panel Available in various sizes, these panels block access into a rack but allow air to pass through for ventilation. 415.00 [url]http://www.discostudio.co.uk/djshop/product_info.php?product_id=100709&affid=dealtime[/url] [url]http://www.fxmedia.co.uk/images/discostudio/100709t.jpg[/url] Musical Instruments Y Next Day Delivery 0.00 0.0
)
This is the result at that point.
Any Ideas? Just I've been on this all day and have absolutley no clue what is going wrong.......
well, apparently $subexplode = explode('\t', trim($value)); does not split the $value in to pieces. this may be because there are no tabs in between fields but spaces. try to use pipes.
Well the reason I was getting that error is that I was using single quotes['] instead of double quotes ["].
eg if I use double quotes for the following:
$sql = "You \t Me \t them";
would output:
You Me Them
BUT:
$sql = 'You \t Me \t them';
would output exactly that:
You \t Me \t them
so, it works now?
Yeh, it seems to.
Thanks Man!