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 Like 24 Dislike
Previous forums Next forums
Other forums

Forms Authentication and Refresh at Login page
Hello, When I try to press the Login button in my webapplication at my login.aspx page nothing h

weeks in a year
hi,

i found this snippet on php.net
QuoteFor the week number for weeks starting on Sunday:

Problems with adding a link to one position in a 'foreach' loop, please help
Hello!

Iam pretty new to programming and I wanna create a table with users from an array. It

Is this Safe or Unsafe?
Hi i made a few pages with lots of peoples help now i just want to know if they are safe or not can

Coding Critique
I was hoping someone could take a second and look down my code and see if they see any problems with

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

PHP & MS Access - Line Break
Hey Guys!

I'm pulling records from an MS Access database and listing them using PHP and I'm r

How to Handle more than one submit button in single form?
Hi
I have one PHP file which contains one Form. In this form there are two Submit type Buttons

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash