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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -