Hello AGAIN
this time i have this problem :
i have a query (the query is correct, it runs on mysql) and i wrote a simple php script to execute it:
[php]<?php
$mysqli=mysql_connect("…","…","…","…");
if (mysqli_connect_errno()){
printf(“connection failed”);
} else
{
mysql_select_db(“database”) or die(mysql_error());
$sql = “LOAD DATA LOCAL INFILE ‘C:/…’
REPLACE INTO TABLE table1
FIELDS TERMINATED BY ‘,’”;
$res = mysql_query($sql)or die(“there is still hope:
”.mysql_error());
echo “
Result | |
---|---|
”; echo $row[‘name’]; echo “ |
”;
} i am getting the message how can i fix that and why is that happening? Given that the query is correct shouldn’t it run smoothly? thanks in advance |