load data infile
| From: | Bobo Wieland | Date: | Sun, 14 Mar 2004 15:01:54 +0000 |
| Subject: | load data infile | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23141@lists.php.net to get a copy of this message | ||
This code...
<code>
$q = "LOAD DATA INFILE
'".str_replace("\\","/",$sqlfil["tmp_name"])."'
REPLACE INTO TABLE sortiment";
$res = mysql_query($q, $link_id);
print(mysql_affected_rows($link_id)."<br
/>".str_replace("\\","/",$sqlfil["tmp_name"]));
</code>
...gives the output:
-1
C:/WINDOWS/TEMP/php1D0.tmp
Any idea why this isn't working?
.bobo