I think Ponder Stibbons will have to bung some Lancre chedder at Hex - we're getting an 'out of cheese' error...
this line hasn't got enough brackets: 😃
if(count($line) == 0 or (count($line == 1) && trim($line[0] === '')
I shall poke around at it and see what I can do.
UPDATE:
I tried this -
if((count($data) == 0) or (count($data == 1) && trim($data[0] === '')))
On the upload, unfortunately, it prevents any data getting entered into the database.
On the download, it doesn't do anything.
For the moment I've taken off the mysql_error() from my script but it would be nice to find a solution to this.