Hallo,
habe folgende Seite: link
Bei Auswahl einer Felge erscheint rechts davon das Gewicht.
Funktioniert über php/ajax/mysql.
Leider bekomme ich es nicht hin, dass gleichzeitig auch die Ausgabe vom Preis erfolgt.
PHP Code:
<?php
$q = intval($_GET['q']);$con = mysqli_connect('localhost','csocc_laufradman','XXX','XXX');
if (!$con)
{
die('Could not connect: ' . mysqli_error($con));
}
mysqli_select_db($con,"");
$sql="SELECT * FROM konfig WHERE id = '".$q."'";
$result = mysqli_query($con,$sql);
$rows = array();
while($row = mysqli_fetch_array($result)){
$rows[] = $row;
};
echo $rows [0]['gewicht'];
echo $rows [1]['preis'];
mysqli_close($con);
?>
Datenbank:
...ist als Bild auf der Website angezeigt.
Auch gepostet unter: http://phpforum.de/forum/showthread.php?p=1562515#post1562515 !