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">
<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
help with multi-update
Now sure how to ask this really....
10g database if that matters.
I have a customer
Calender Not Opening
The following code is not loading the javascript calender in another window. It's not doing anything
Simple Variable Question
Hi everyone.... again,
I am really getting into php still. Learning more every day. I love it
convert pps to wsf with php'how?
hi
i want to convert with php
PowerPoint file to swf file(flash)
how please?
thank!!!
Form Help
Here is the form:
Line number On/Off | Expand/Contract<? include("../include/sess
PHP and Javascript
Hello Everyone,
I have a page that needs a javascript code to be written between PHP code but
Company Code for Vendors created through Business Partners
Hi, experts!
I'm trying to set up the integration between Business Partner (BP) and Vendo
set xml path in flash when xml created in memorystream and webrequest
i am creating an xml file using memory stream and i want to load this xml file into the flash on cli
help with Get_
ok some how this is not working i am not sure what i am doing wrong here but what this does is when
checkbox update
I am having a brain fart right now and i cant remember how to do this. if anyone could help that wou