i would like to create a form to edit the below display information. i had find a lot of example to refr but still dont know how to start. Can anybody give a help?
Below is my code. How do i start with the below code to create a edit form ?
<?php
// check if id is passed to this routine
if (isset($GET['id'])) {
// if yes: remove harmful tags and save the passed id in variable $id
$id = strip_tags($GET['id']);
//required file for database connection
require("config.php");
echo "<table border='1'>";
// construct SQL statement
$sql = mysql_query("SELECT *FROM listofitem WHERE ID='$id'");
//$sql1=mysql_query("SELECT NamaPeralatan,Jenama FROM listofitem WHERE ID='$id'");
//$information1=mysql_fetch_array($sql1);
$information=mysql_fetch_array($sql);
echo "<table border='1'>";
echo "<tr><td bgcolor='#CCCCFF'>Nama Peralatan</th><td bgcolor='#CCCCFF'>Jenama</th><td bgcolor='#CCCCFF'>Tahun Dibekalkan</th></tr>";
echo"<tr><td>{$information['Name']}</td>
<td>{$information['Brand']}</td>
<td>{$information['Date']}</td>
echo "</table>";
}