Escaping a string with quotes in Laravel
问题 I would like to insert the content of an excel file into my database. I simply use a raw query to achieve this. The controller function public function uploadExcel() { $filename = Input::file('import_file')->getRealPath(); $file = fopen($filename, "r"); $count = 0; while (($emapData = fgetcsv($file, 10000, "\t")) !== FALSE) { $count++; if($count>1) { DB::statement("INSERT INTO `members` ( member_title, member_first_name, member_name_affix, member_last_name, member_private_address, member