I am trying to save contents of the table 'dbtable' into a csv file using OUTFILE method. It doesn't give me any error and I am unable to find the file either. I have tried without defining the path and using 'mydata.csv' only too. But same result. I am using wamp on Windows 10.
mysqli_query($con,"SELECT * FROM dbtable INTO OUTFILE 'C:\mydata.csv' FIELDS ESCAPED BY '\"' TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n' ");