![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have a file handle that reads all the files in a directory into an array $file. All the files are text files seaparated by the pipe. Do the rows get escaped automatically with the default? The file shouldn't be uploaded if it doesn't have the right columns. There are 2 sql queries. One is to input the filename into the filename column. The other one is to parse 3 numbers out of the filename and input it into the location_code column. These two inputs can be input on every row. There is an auto enter number id field. How can I get the number of the ID's for the current file so I can do the right UPDATES in the WHERE? |
#2
| |||
| |||
|
|
I want to LOAD text files, delimited by |'s, all the rows, to a database table. |
![]() |
| Thread Tools | |
| Display Modes | |
| |