ded Posted June 3, 2011 Share Posted June 3, 2011 I need to give a user the ability to put in some dates and have a report generate for them. The query and everything is already completed, but how do I put the results in a word or text document? David Link to comment https://forums.phpfreaks.com/topic/238322-php-mysql-reports/ Share on other sites More sharing options...
fugix Posted June 3, 2011 Share Posted June 3, 2011 once you have the user data, you can use a combination of fopen() fwrite() and fclose() to write the input to a txt file Link to comment https://forums.phpfreaks.com/topic/238322-php-mysql-reports/#findComment-1224754 Share on other sites More sharing options...
WebStyles Posted June 3, 2011 Share Posted June 3, 2011 see also file_put_contents(); Link to comment https://forums.phpfreaks.com/topic/238322-php-mysql-reports/#findComment-1224801 Share on other sites More sharing options...
fugix Posted June 3, 2011 Share Posted June 3, 2011 see also file_put_contents(); thanks, file_put_contents() is the preferred method Link to comment https://forums.phpfreaks.com/topic/238322-php-mysql-reports/#findComment-1224807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.