= 8) { if($rec[6] == 'error') { $query = "update textbook_companion_example set cloud_err_status=1 where chapter_id=".trim($rec[2])." and number=".trim($rec[4]); mysql_query($query); echo $count++ . " " . $query . "
"; } } } fclose($file); ?>