load data infile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux