how do you parse a csv file into a mysql database with php, From bits I have read from php documents I am not sure how or if its possible to add conditions to the lines that you are reading into the database so that only values that meet the condition are passed into the database.
for instance I currently have a csv file that looks like this
0001D,5879
0001E,0521
0001F,4587
0001G,2220
0001H,2482
0001I,9087
0001J,2255
0001K,2247
the codes before the comma are supposed to only be hex values, what I would like to do is exclude any line (so hex value and its code) that dose not represent a hex code (0-9)-(A-F)... any idea on how the could be accomplished?