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
how to get different value in second view of webdynpro?
hello guys,
In ABAP webdynpro I am trying to create one application having two views.
Php Mysql Page Loading Notice
Hi all,
I was wondering if there is a way (Sure there is) of showing a message or an image wh
why does my session end?
my connect.php starts the session just so you know
i can navigate arround my site fine except whe
PHP FTP connect doesn't work with correct login
Hi!
i am working on this test code:
Quote<?php
$ftp_ser
chat
hello i'm amir
i need a chat source code in asp.net 2.0 without Ajax.
anybody can help me?
login page does not execute a else statement
I've created a login page using sessions.
When an incorrect user name or password is entered then
scandir clients directory
hi,
how can i scandir the clients directory? i need a script that when i click a button it will u
try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called
session checking in page load
hai all
I have a web site is www.Mryas.com in this my login page is Page1.aspx its co
division gives infinity anser
int main()
{
int z=0;
int i=1/z;
cout<
}
It doesn't throw a