cannot import table in mysql
1i saved my excell file in csv formate
2i made a data base in mysql
3i made a table with 5 fields
4i run this file
error
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\tes t\hi.php on line 16
1i saved my excell file in csv formate
2i made a data base in mysql
3i made a table with 5 fields
4i run this file
error
Parse error: syntax error, unexpected T_STRING in C:\wamp\www\tes t\hi.php on line 16
Code:
<?php
echo"hi";
$conn=mysql_connect("localhost","root","");
if(!($conn)) die("could not connect");
$db=mysql_select_db("asdf");
if(!($db)) die("database not found");
LOAD DATA INFILE 'D:\backup\institutes.csv' INTO TABLE 'inst';
?>
Comment