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
pop3 and fsockopen
So I am able to connect to the pop3 server, log in, and check how many messages there are. I am hav
File upload issues
Hi Guys,
Can anyone see any issues with this code:
Code: $setImage= 'productimages/' . dat
Sort a two dimensional array.
Hi. I've set up a two dimensional array that reads as follows:
Code: $modifiedData = array(
Specific name typed, specific image shown on html page
Hello,
Fairly new to PHP and was curious if someone might know how to solve a fairly simple r
am I using this for loop correctly
Dear buddies!
Right now I am generating a report with some details for all the dealers.
smart reading from a text file
Hello there fellow coders, i was wondering if one of you wouldnt mind helping me with this problem i
Ajax Issues - Update Panel / Timer. Intellisense doesn't know about them
Type 'System.Web.UI.ScriptManager' does not have a public property named 'UpdatePanel'.
That is wha
Two fgetcsv related questions ;D
First of im trying to get a file from a merchants server but the directory is protected, I know the
Help With Showing Users On the Index Page
Ive got this code which works just how i want it to.
Code: <?
$timenow=time();
newbie error
what is wrong with this code ?
<html>
<body>
<?