Sorry. You cannot add PHP code directly into a CSV cell. However, there is the PG Import stack that allows you to import stacks (which could contain PHP) into a cell.
I will have a look at the PG Import but I think I am painting myself in to a corner. My tables are fairly static so I might end up changing tack and create my own tables.
You set the ID inside of the import stack settings. Then you place the macro with the id inside of your CSV file. So if your ID was “code”, then your macro would be “%pgimport(code)%”
Wherever you place that macro, you will get the data from the PG Import stack.
Before I put you to a lot of trouble, Joe, even setting a max number of columns would help. It would be just a matter of re-ordering my columns so that the “hide” columns are after theMAX CoL.
Because my php script uses data in the other columns based on the index. Don’t worry about it joe. Easy enough to set up as two tables. Just looking fir the easy way out. Thanks fir your help again.