Hello All,
I justed switched to a different web hosting company as the one I had was not allowing a number of things that I needed.
Any how I have a script writen to allow the file to be taken and then upload the data to the database but I get a error. the error is:
Access denied for user 'IRS-EOML'@'%' (using password: YES)
<?php
$db_conn = mysql_connect("mysqlxxxx.servage.net",
"IRS-EOML",
"************");
mysql_select_db("IRS-EOML", $db_conn);
// INSERT the data into the database table
$query = "LOAD DATA INFILE '/mounted-storage/www/uploads/EOA01.LST'
INTO TABLE IRS_EOML
(@var1)
SET
col0 = substr(@var1,0,9),
col1 = substr(@var1,9,70),
col2 = substr(@var1,79,35),
col3 = substr(@var1,114,35),
col4 = substr(@var1,150,1)";
$result = mysql_query($query);
if(!$result) die(mysql_error());
else { $affected++; }
// printf("File inserted: %d records\n", $affected);
// closes the mysql database connection
mysql_close($db_conn);
?>
what is so wrong with this that I would get the above error