Gagal Terus Import Gan, Notice: Undefined index: csvfile in...

<?php
	$con = mysqli_connect("localhost", "root", "", "tut");

	if($con)
	{
		$file = $_FILES['csvfile']['tmp_name'];
		$handle = fopen($file, "r");
		$i=0;
		while(($cont = fgetcsv($handle,1000,","))!==false)
		{
			$table = $_FILES['csvfile']['name'];
avatar YusufNasrul
@YusufNasrul

2 Kontribusi 0 Poin

Diperbarui 6 tahun yang lalu

2 Jawaban:

input type ="file" nya dicheck apakah sudah bener. seperti ini..

 <input type="file" name="csvfile">
avatar ciloxz
@ciloxz

284 Kontribusi 139 Poin

Dipost 6 tahun yang lalu

Udah bener kok gan, Terimakasih udah mencoba jawab @ciloxz

avatar YusufNasrul
@YusufNasrul

2 Kontribusi 0 Poin

Dipost 6 tahun yang lalu

Login untuk ikut Jawaban