Is it possible in your PHP code to instead of writing out your SQL script in your code (by inserting it into a variable in the script) to instead put it in a separate file and then have the function run the query from that file?
I have tried this, by first reading the contents of the SQL file into a string and then using that string as my query but I keep getting SQL errors and I’m not sure why. I know you can do this in phpMyAdmin, but I’m not sure how they do it.
I have tried this, by first reading the contents of the SQL file into a string and then using that string as my query but I keep getting SQL errors and I’m not sure why. I know you can do this in phpMyAdmin, but I’m not sure how they do it.