$result = mysqli_query($link, $sql); while ($dbarr = mysqli_fetch_array($result)) {
$count++; } $itemno = $count + 1;
what the.................................