I want to access a CSV file behind a Javascript object for my LOAD DATA INFILE function.
e.g. the "Download Max" button on this page, https://www.barchart.com/futures/quotes/Znh18/price-history/historical OR The "Download a Spreadsheet" button on this page, http://quotes.wsj.com/bond/BX/TMUBMUSD10Y/historical-prices#
This is my code
...
$csvfile = '\'/home4/cascaderange/public_html/00_test/znh18_180208.csv\'';
$cminfile = 'LOAD DATA LOCAL INFILE '
.$csvfile.'
replace INTO TABLE TABLE04 FIELDS TERMINATED by \',\'
IGNORE 1 LINES;';
mysqli_query($conn,$cminfile) or die(mysqli_error());
...
Thanks!