Exporting mysql table to .txt or .doc file using PHP

前端 未结 5 500
借酒劲吻你
借酒劲吻你 2020-12-19 11:48

I have a mysql table that keeps a log of messages that users send every day. What I want to do is export the the message log once per day into a text file, and am not sure h

5条回答
  •  一生所求
    2020-12-19 12:21

    Well the main issue with this is script is that you did not select a database, that is, using "mysql_select_db" before "mysql_query". Then remove the semi-colon from "myTable(;)". Also create a blank text file within your root folder, this is where your data would be stored.Your script should work fine afterwards. This solution is for future users who might need this script to aid their design.

提交回复
热议问题