PHP & MySQL Catalogue

Associate
Joined
4 Mar 2003
Posts
1,484
Hi all!

Right basically I’m trying to make a simple online catalogue so products can be viewed. I have got most of this working how I want.

What I’m trying to do now is, when someone clicks a product image it will open up a new window and display a different image of that product. (Hopefully your still following this)

From what I can tell I need to pass the product id from one page to another via a hyperlink, this is what I need help on!

Any ideas? here is some of the code, any help is greatly appriciated!


PHP:
<table width="622" cellspacing="0" cellpadding="0" border="0">
			
			<?php
			while($row = mysql_fetch_array($result))
			{
			?>
				<tr>
					<td width="25%" height="25">
						<font face="verdana" size="1" color="black">
							<?php echo $row["itemName"]; ?>
						</font>
					</td>


					<td width="30%" height="25">
						<font face="verdana" size="1" color="black">
						<img src="<?php echo $row["itemImage1"]; ?>">
						</font>
					</td>




					<td width="10%" height="25">
						<font face="verdana" size="1" color="black">
							$<?php echo $row["itemPrice"]; ?>
						</font>
					</td>
					<td width="35%" height="25">
						<font face="verdana" size="1" color="black">
							<?php echo $row["itemDesc"]; ?>
						</font>
					</td>
					
				</tr>
				<tr>
					<td width="100%" colspan="5">
						<hr size="1" color="black" NOSHADE>
					</td>
				</tr>
			<?php
			}
		?>
			<tr>
				<td width="100%" colspan="4">
					<font face="verdana" size="1" color="black">
						<a href="cart.php">Your Shopping Cart &gt;&gt;</a>
					</font>
				</td>
			</tr>
		</table>
 
Last edited:
Back
Top Bottom