Importing a csv script via mysql and php -
due nda @ work can't go of other code snipit of code i'm questioning
while (($data = fgetcsv($handle,',')) !== false) { $csvstuff->execute($data); $affectedrows +=1; //echo "test rows:".$affectedrows."\n"; } my code executes db should. there anyway protect against csv content comes in if has erroneous
, in csv string break code. there away check , prevent happening?
edit 1: should note vendor sending csv on via ftp every night coming automated system don't control data output of file
Comments
Post a Comment