You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '';file_put_contents('rookie.php',('select classid,classpagekey,intro,classimg,cgroupid,islist,classtempid,listdt,bdinfoid,repagenum,islast,infos from ***_enewsclass where classid='155'