更新时间:2023-02-06 17:48:11
file >除非你真的想要逐行的数据。 file_get_contents()
更好。
$ query == file($ file_name);
我不认为你想在这里进行比较。 mysql_query
将只能一次执行一个查询。您必须想出一些方法将您的查询分离出来并逐个运行。file()
unless you really want the data line-by-line. file_get_contents()
is better.$query==file($file_name);
I don't think you want to do a comparison here.mysql_query
will only ever execute a single query at once. You'll have to come up with some way of separating your queries in the file and run them one-by-one.