I'm trying to select all of my column and it works perfectly with this
$query = "SELECT * FROM employee";
$result = mysqli_query($con, $query);
while ($employee = mysqli_fetch_array($result)) {
# code...
print (json_encode($employee));
}
and I also succeed select some of my column using this code
$query = "SELECT ID, NAME, LAT FROM employee";
$result = mysqli_query($con, $query);
but I failed when I try to select LONG column, it said that
mysqli_fetch_array()
expects parameter 1 to bemysqli_result
It just show when I select LONG column, but it works well if I select another column.