-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsparepartsstoremore.php
42 lines (36 loc) · 1.25 KB
/
sparepartsstoremore.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
include("header.php");
include("sidebar.php");
include("dbconnection.php");
$sql = mysql_query("select * from spareparts where spid='$_GET[sparepartid]'");
$row = mysql_fetch_array($sql);
?>
<div id="main">
<h3>Spare parts store</h3>
<br />
<table width="534" border="1">
<tr>
<td colspan="2"><strong>Spare part name: </strong>abcd spare</td>
</tr>
<tr>
<td width="142"><img src="upload/<?php echo $row['image']; ?>" width="196" height="153" /></td>
<td width="352" valign="top"><p><strong>Spare parts type : <?php echo $row['type']; ?></strong></p>
<p><strong>Cost : <?php echo $row['cost']; ?></strong></p>
<p><strong>Spare parts serial No. : <?php echo $row['sparepartno']; ?></strong></p>
<p> </p></td>
</tr>
<tr>
<td><strong>Description:</strong></td>
<td valign="top"><?php echo $row['description']; ?></td>
</tr>
<tr>
<td> </td>
<td valign="top"><strong><?php echo "<a href='sparepartsorder.php?sparepartid=$row[spid]'>Buy now>></a>"; ?></strong></td>
</tr>
</table>
</div>
<!-- wrap ends here -->
</div>
<?php
include("footer.php");
?>