this is my action page
<html>
<body>
<?php
//trim($id); //delete this 1 1st.
//$searchtype = $id;
//$searchterm = $id;
$db = mysql_connect("localhost", "root");
mysql_select_db("client1",$db);
// display individual record
if ($id) {
$result = mysql_query("SELECT * FROM customer WHERE id =$id",$db); //$id
$myrow = mysql_fetch_array($result);
printf("Customer ID: %s\n<br>", $myrow["id"]);
printf("Company: %s\n<br>", $myrow["Company"]);
printf("Business Nature: %s\n<br>", $myrow["Business_nature"]);
printf("Contact person: %s\n<br>", $myrow["Contact_person"]);
printf("position: %s\n<br>", $myrow["Position"]);
printf("address: %s\n<br>", $myrow["Address"]);
printf("tel: %s\n<br>", $myrow["Tel"]);
printf("fax: %s\n<br>", $myrow["Fax"]);
printf("handphone: %s\n<br>", $myrow["Handphone"]);
printf("e-mail: %s\n<br>", $myrow["email"]);
printf("website: %s\n<br>", $myrow["Website"]);
printf("birthday: %s\n<br>", $myrow["Birthday"]);
printf("remarks: %s\n<br>", $myrow["remarks"]);
} else {
// show employee list
// no records to display
echo "Sorry, no records were found!";
}
?>
</body>
</html>
i plan to do a form page which can allow me to insert customer id number, and then retrieve the data from database.
does anyone know how to do that??
thanx in advance.