I'm using the following to import data into MySql Database via PHP, but how do I Escape Strings that are found in the header row of the data itself? In the example below the first header $order-id contains "-" which stops the import rountine.
How the best way to get around this without having to change the header rows?
while(($fileop = fgetcsv($handle,10000,",")) !== false)
$order-id = $mysqli->real_escape_string($fileop);