shoping cart issues
Posted on
16th Feb 2014 07:03 pm by
admin
i´ve wrote this and works when i add an item to, my cart, but when i want to add othrer item just replaces the last one. please help!!
Code: [Select]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Did you know?Explore Trending and Topic pages for more stories like this.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>my site</title>
<link href="general.css" rel="stylesheet" type="text/css">
<link href="productos.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="funciones.js"></script>
</head>
</head>
<body>
<div id="contenido">
<?php
include('config.php');
$id=$_GET['i'];
$sql= "SELECT * FROM products WHERE id='$id'";
$consulta = mysql_query($sql);
$row = mysql_fetch_assoc($consulta);
$s=$row['sexo'];
$c=$row['categoria'];
$f=$row['fotos'];
$o=$_GET['o'];
$p=$_GET['p'];
?>
<h1>CARRO DE COMPRAS</h1>
<table>
<tr>
<td width="110">Foto</td>
<td width="110">Marca</td>
<td width="110">Producto</td>
<td width="110">Precio</td>
</tr>
<tr>
<td><img src='thumbs/productos/<?php echo $row['id'];?>_b.jpg'/></td>
<td class="td"><?php echo $row['marca']; ?></td>
<td class="td"><?php echo $row['nombre_producto']; ?></td>
<td class="td"><?php echo $row['precio']; ?></td>
</tr>
</table>
</div>
</body>
</html>
No comments posted yet
Your Answer:
Login to answer
96
24
Other forums
Automatic Webpage ??
I have a page www.mysite.com/test.php with a
<form>
<textarea name=&q
reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos
how to load php class from another domain?
how to load php class from another domain?
need help with mail()
hi i want to send an email with attaching pdf file using php. i have the following script but the pr
PO Release Strategy Issue
Hi Experts,
I am facing an issue related to PO release strategy. The details are-
<
Empty text file when there is over XXXX lines of text.
define("RANDOM_FILE","/public_html/random.txt");
$randomEntry = "
LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...
$result = mysql_query(&q
. and .. appearing instead of pictures
First of all, thanks very much for providing this forum. It is very much appreciated!
My son
Renaming array keys
The issue: renaming array keys inside a foreach loop.
I'm trying to build a pie chart image w
problems with script
I made a small script wich exchanges points in my website:
<?php
session_start