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
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.