Hi,
I'm reading data from a flat file and inserting each record into a DB2 database.
Multiple lines in the input data have quotes (O'NEIL for example), so the following code fails on those records:
$addRecord = "INSERT INTO ".$DB2file." values('" . mysql_real_escape_string($currentLine) . "')";
$result = odbc_exec($connect, $addRecord);
Each record I'm adding to the DB2 database must be an exact replica of the data I'm reading, so I need to keep these quotes in the DB2 database, I can't simply replace/escape them as I normally do.
Help! :)