|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Writing Data into a .TXT or .DAT file
hi,
I need to grab data from a MySQL datatabse and save/write it to a .DAT or .TXT file. It can be Tab Delimited. The data has to be saved in the following manner: PHP Code:
So, two columns and tab delimited. If you have any idead please let me know. -C |
|
#2
|
||||
|
||||
|
Do you have any code? Or is this a school assignment?
|
|
#3
|
|||
|
|||
|
UPDATE: I just solved my own problem. Thank you!
Ok. I was able to grab data from the database and save it to a .txt file. My problem is that I only want 'X' number of fields, say two fields. It has to be TAB Delimited, which it now works but It refused to break at the end of the line. PHP Code:
OUTPUT: 'john marry jessica carol james julie jeff'. DESIRED OUTPUT: john marry jessica carol james julie jeff What am i doing wrong? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Writing Data into a .TXT or .DAT file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|