I am trying to save a array of tables into separate file. Why doesn't this code work?
<?php
$query = "SELECT * INTO OUTFILE 'pessoa_Out.txt' FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '#' FROM $tables[$i]";
?>
I have already tried to save a single table and I was successful. I can also list the array values, so the problem must be on this line.