I need to display an id number from "kategori_barang" table. When I submitted the code, I get an error message which says "trying to access array offset on the value of type null". Somebody can figure this out? Thanks for the help.
//the title
<h3>Form Edit Kategori</h3>
//syntax for open a controller
<?php echo form_open('kategori/edit'); ?>
//list for display an id number
<input type="text" value="<?php echo $record['kategori_id'];?>" name="id">
<table border="1">
<tr>
<td>Nama Kategori</td>
<td><input type="text" name="kategori" placeholder="kategori"
value="<?php echo $record['nama_kategori'];?>"></td>
</tr>
<tr>
<td colspan="2"><button type="submit" name="submit">Submit</button></td>
</tr>
</table>
</html>