This issue must have been asked a thousand times, but here's mine: I want to update an entry from another page, so I passed the id via the URL. The problem is: when I go and hit "edit" a new page will come up with the Undefined variable: row in lines 93, 96 and 99 (it's the
<form action="" class="w3-container" method="post">
<input type="hidden" name="id" value="<?php echo $id;?>">
<p>
<input class="w3-input" type="text" name="itemno" value="<?php print $row['item_no'];?>"required>
<label class="w3-label w3-validate">Item Number</label></p>
<p>
<input class="w3-input" type="text" name="itemname" value="<?php print $row['item_name'];?>"required>
<label class="w3-label w3-validate">Item Name</label></p>
<p>
<input class="w3-input" type="text" name="desc" value="<?php print $row['item_desc'];?>" required>
<label class="w3-label w3-validate">Description</label></p>
<p>
<button class="w3-btn w3-blue-grey w3-hover-teal" name="update">Update</button>
<button class="w3-btn w3-blue-grey w3-hover-light-blue" name="reset" type="reset">Clear fields</button></p>
</form>
<?php $id = $_GET['id']; ?>
BTW, here's what I use when getting the ID ^^^^