// This block grabs the whole list for viewing
$my_id = isset($_POST['id']) ? $_POST['id'] : '';
$ped_list = "";
$sql = "SELECT * FROM `pedagogu`";
$result2 = @mysql_query($sql) or die($sql."<br/><br/>".mysql_error());
$pedCount = mysql_num_rows($result2); // count the output amount
if ($pedCount > 0) {
while($row = mysql_fetch_array($result2)){
$my_id = $row["ID_Pedagog"];
$ped_emri = $row["Emri"];
$ped_mbiemri = $row["Mbiemri"];
$date_added = strftime("%b %d, %Y", strtotime($row["date_added"]));
$ped_list .= "Ped ID: $id - <strong>$ped_emri</strong> -<strong>$ped_mbiemri</strong> - <em>Added $date_added</em> <a href='inventory_edit.php?pid=$id'>edit</a> • <a href='pedagog_list.php?deleteid=$id'>delete</a><br />";
}
} else {
$ped_list = "Nuk ka pedagoge te shtuar ne databaze";
}
Notice: Undefined index: ID_Pedagog , date_added, id