-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathwomens.php
112 lines (93 loc) · 2.86 KB
/
womens.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
require_once('inc/functions.inc.php');
// Start the session
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Womens</title>
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" type="text/css" href="css/b1.css">
</head>
<img src="images/logo.jpg" />
<a href="cart.php" ><img src="images/ccart.png" /></a>
<div class="menu">
<ul>
<li><a href="index.php" >Home</a></li>
<li><a href="mens.php" id="current">Mens</a></li>
<li><a href="womens.php" id="current">Womens</a></li>
<li><a href="contactus.php" id="current">Contact Us</a></li>
<li><a href="aboutus.php" id="current">About Us</a></li>
</li>
</ul>
</div>
<body>
<div id="stshoplist">
<h1></h1>
<?php
echo writeShoppingCart();
?>
</div>
<div id="stshoplist">
<h1><B>Womens Collection</B></h1>
<br>
<h2><u>Tops</u></h2>
<?php
$db_name="stshop";
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("$db_name") or die(mysql_error());
$result = mysql_query("SELECT * FROM prod where category='wsrt'");
?><table border="1">
<?php
while ($row = mysql_fetch_array($result)) {
echo "<td>";
echo "<table><tr><img src=\"images/" .$row['image']. "\" /> <br></tr>";
echo "<tr>" .$row['title']. "<br></tr>";
echo "<tr>Price: £" .$row['price']. "<br></tr>";
echo '<a href="cart.php?action=add&id='.$row['id'].'">Buy Now</a>';
echo "</table></td>";
}
echo "</table>";
?>
<br>
<h2><u>Footwear</u></h2>
<?php
$db_name="stshop";
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("$db_name") or die(mysql_error());
$result = mysql_query("SELECT * FROM prod where category='wsh'");
?><table border="1">
<?php
while ($row = mysql_fetch_array($result)) {
echo "<td>";
echo "<table><tr><img src=\"images/" .$row['image']. "\" /> <br></tr>";
echo "<tr>" .$row['title']. "<br></tr>";
echo "<tr>Price: £" .$row['price']. "<br></tr>";
echo '<a href="cart.php?action=add&id='.$row['id'].'">Buy Now</a>';
echo "</table></td>";
}
echo "</table>";
?>
<br>
<h2><u>Accessories</u></h2>
<?php
$db_name="stshop";
mysql_connect("localhost","root","") or die(mysql_error());
mysql_select_db("$db_name") or die(mysql_error());
$result = mysql_query("SELECT * FROM prod where category='wacc'");
?><table border="1">
<?php
while ($row = mysql_fetch_array($result)) {
echo "<td>";
echo "<table><tr><img src=\"images/" .$row['image']. "\" /> <br></tr>";
echo "<tr>" .$row['title']. "<br></tr>";
echo "<tr>Price: £" .$row['price']. "<br></tr>";
echo '<a href="cart.php?action=add&id='.$row['id'].'">Buy Now</a>';
echo "</table></td>";
}
echo "</table>";
?>
</div>
</body>
</html>