//require("conexion.inc");
$base="mekos";
$tabla="glosario";
$c=mysql_connect("localhost","carlos","carlos");
//$c=mysql_connect("neptuno-p","usuarioMEKOS","MEKOSusuario");
mysql_select_db($base,$c);
$row = 1;
$fp = fopen ("msfernandez2a.csv","r");
while ($data = fgetcsv ($fp, 1000, ";"))
{
$num = count ($data);
// echo $num;
print "
";
$row++;
echo $row.".- ".$data[0]."
";
echo $data[1]."
";
echo $data[2]."
";
echo $data[3]."
";
echo $data[4]."
";
echo "-------"."
";
$insertar="INSERT INTO glosario (termino,definicion,modulo,ciclo,objapre) VALUES ('$data[0]','$data[1]','$data[2]','$data[3]','$data[4]')";
mysql_query($insertar,$c);
}
fclose ($fp);
mysql_close();
?>