I write this script in roder to verify if the sql empty or not:
if (isset($_GET['edit'])){
$id = $_GET['edit'];
$update = true;
$result = $mysqli->query("SELECT * FROM task WHERE id_task=$id") or die($mysqli->error());
$count = count($result);
if($count == 1){
$row = $result->fetch_array();
$nom_task = $row['name_task'];
$id_operation = $row['id_operation'];
$nom_operation = $row['name_operation'];
}
any suggetions to resove this please? the problem is in $count and $result?????