When I execute this SQL statement in my PHP code, I get an error
"File '.\Address.txt' not found (Errcode: 2)"
$File = addslashes(".\A ddress.txt");
$SQL = "Load Data InFile \"" . $File . "\" into table addresses";
$result = mysql_query($SQ L) or die(mysql_error ());
The file is located in the same directory as my .PHP file.
How do I generate a relative address for this file so that it can be found?
I'm running on XP Prof..
Thanks...
Bruce
"File '.\Address.txt' not found (Errcode: 2)"
$File = addslashes(".\A ddress.txt");
$SQL = "Load Data InFile \"" . $File . "\" into table addresses";
$result = mysql_query($SQ L) or die(mysql_error ());
The file is located in the same directory as my .PHP file.
How do I generate a relative address for this file so that it can be found?
I'm running on XP Prof..
Thanks...
Bruce
Comment