Question : Clean up text file before importing and resolve apostrophe problem

Attached is the raw text file just the way it is received. I need to remove the first 8 lines from the top of the text file before importing.

Also, there can be an ' (apostrophe) in the text file. It seem to occur most often in one of the EmpTrailer? Field Names. When ever they show up the file will not import. What is the resolution to this issue

Thank you

Attachments:
 
Test Text File
 

Answer : Clean up text file before importing and resolve apostrophe problem

May this?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
while($row2 = mysql_fetch_array($result2)) {  
                $query_check = "SELECT * FROM articlestosites where articleid = {$id} AND site_id = {$row['id']}";
                $result_check =  mysql_query($query_check);
                if(mysql_num_rows($result_check)){
                    echo "<option SELECTED>{$row2["articletype"]}</option>";
                }else{
                    echo "<option>{$row2["articletype"]}</option>";     
                }

        }
Random Solutions  
 
programming4us programming4us