<?php
include 'connect.php';
$conn = mysqli_connect($host, $user, $pass, $db);
if (!$conn) {
die("KO" . mysqli_connect_error());
}
$id = $_GET['id'];
$sql = "select * from tblabc where id = '$id'";
if (mysqli_num_rows($sql)==0){
echo 'ok';
} else {
$data = mysqli_fetch_assoc($sql);
}
?>
this is my code to editing the table record. but when its executed occurs error "notice: Undefined index: id". how to resolved this issued. thx