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

whats wrong with my code please help!!!
this is the error


Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

Login Control?!
I have a Web Site that uses the login control also I have set the destinationurl to the page I want

how to get values from $_Post with onchange="form.submit();"?
Hi, I have a form that submit to itself with a file upload field and two other hidden field values.<

form class help (oop php5)
Hidy Ho Neighbors,

I'm forcing myself to learn oop/classes for php5. It seems like a good id

Calculus Help (and by help I mean homework)
Hrmmm, I hate posting about math homework, partly because it's homework, and partly because I hate w

PHP arrays into arrays need help
Hello
I am trying to highlight the days on my calendar based on the dates that i have in my datab

Secure FTP
Hi experts,
There is no SFTP action in MII workbench.
This means it needs developing custo

storing results of a function - previous result overwritten with new result
I have created a function to validate input.

function validate_dimension($value,$name) {
<

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

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