<html>

<body style="background-color: #ffffff;background-image:url(rail.jpg);background-repeat: repeat-y">
<center>
<?php include('link.php');?>
<h1>Add Supplier</h1>
<a href="supplier.php" ><img src=back.jpg width=40 height=40></a>
<hr>

</center>
<?php 
	$login=mysql_connect('localhost', 'wauhaha_karaoke', 'cross123','wauhaha_karaoke');
	
	mysql_selectDB("wauhaha_karaoke",$login);
$SupID = $_GET['SupID'];
$result =mysql_query("select * from supplier where SupID='$SupID' ");
$row = mysql_fetch_array($result);	
echo "<center>

<form method=post action='editsupaction.php?SupID=$SupID '>
<table style='font-size:18pt' width=400>
	<tr >
		<td >Supplier ID:</td>
		<td>$SupID</td>
	</tr>
	<tr>
		<td>Company Name:</td>
		<td><input type=text name=SupName size=30 value=".$row['SupName']."></td>
	</tr>
	<tr>
		<td>Supplier Address:</td>
		<td><input type=text name=SupAdd size=30 value=".$row['SupAdd']."></td>
	</tr>
	<tr>
		<td>Supplier Contact:</td>
		<td><input type=text name=SupCont  size=30 value=".$row['SupContact']."></td>
	</tr>
	<tr>
		<td colspan=2 align=center><input type=submit name=submit value=Edit style='width:50;height:30'></td>
	</tr>
	
	</table>

</center>";










?>