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

前端 未结 5 509
借酒劲吻你
借酒劲吻你 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:36

    The answer I had posted earlier will work perfectly only when last field value in a row is not equal to any other field value in that same row.Bcoz the checking for comma separation is based on the last field value,now it changed to last field index.

    If u use the previous code,then u cant get the proper comma separation near the field value which is equal to last field value in that row,other ways the code is also correct.

    
    

提交回复
热议问题