Hello
i am trying for cuple days to make shoping cart for my web page, here is what i have and what i need
i make slq DB that holds over 3000 artikls , i make php page that display arikles from sql , i need a code that will put specific artikle in shoping cart , i was downloading some simple shoping carts try to implemen them in my table but no luck ! i need help with my php script here is code of my file where i need to implement a Button that will add specific row in shoping cart … i am new in this coding. so i need litle help
sorry for my ENG
[php]
.imagetable {
font-family: verdana,arial,sans-serif;
font-size:8px;
color:#333333;
text-align: center;
vertical-align: super;
display: table-cell;
border-width: 1px;
border-color: #999999;
border-collapse: collapse;
}
.imagetable th {
background:#b5cfd2 url(‘cell-blue.jpg’);
font-size:12px;
border-width: 1px;
padding: 0.2px;
border-style: solid;
border-color: #999999;
}
.imagetable td {
background:#dcddc0 url(‘cell-grey.jpg’);
font-size:11px;
border-width: 1px;
padding: 3px;
border-style: solid;
border-color: #999999;
}
<input type="submit" name="submit" value="submit">
$result = mysql_query($sql);
echo "
Item | d | De | Lo | R | nt | Ln | sn | Fn | Werkstoff | ab Lager | Price | Art.-Nr. | Shop |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
”. $row[‘Art’]. “ | ”;”. $row[‘d’]. “ | ”;”. $row[‘De’]. “ | ”;”. $row[‘Lo’]. “ | ”;”. $row[‘R’]. “ | ”;”. $row[‘nt’]. “ | ”;”. $row[‘Ln’]. “ | ”;”. $row[‘sn’]. “ | ”;”. $row[‘Fn’]. “ | ”;”. $row[‘rdj’]. “ | ”;”. $row[‘stanje’]. “ | ”;”. $row[‘cena’]. “ | ”;”. $row[‘artnr’]. “ | ”;<input type=“image” src=“shopping-cart-icon-614x460.png” width=“15” height=“15” | ’;
}
else
{
$sql = sprintf(“SELECT * FROM druckfederi ORDER BY d”);
$result = mysql_query($sql);
echo "
Item | d | De | Lo | R | nt | Ln | sn | Fn | Werkstoff | ab Lager | Price | Art.-Nr. | Shop |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
”. $row[‘Art’]. “ | ”;”. $row[‘d’]. “ | ”;”. $row[‘De’]. “ | ”;”. $row[‘Lo’]. “ | ”;”. $row[‘R’]. “ | ”;”. $row[‘nt’]. “ | ”;”. $row[‘Ln’]. “ | ”;”. $row[‘sn’]. “ | ”;”. $row[‘Fn’]. “ | ”;”. $row[‘rdj’]. “ | ”;”. $row[‘stanje’]. “ | ”;”. $row[‘cena’]. “ | ”;”. $row[‘artnr’]. “ | ”;<input type=“image” src=“shopping-cart-icon-614x460.png” width=“15” height=“15” | ’;
}
mysql_close($db_con);
?>[/php]