ich komme gerade nicht weiter
kann mir jemand helfen hab ein browser game das so weit läuft hänge aber an folgendem prob. fest.
und zwar beim Kauf script
Das kaufen an sich geht. !!
aber nun soll das Script aber auch über prüfen ob nicht nur gold sondern auch Rubine verfügbar sind. ich kopiere das mal rein:
original wie es funktioniert
PHP Code:
while($przedmiot = mysql_fetch_array($sql)){
$opcje = "Insufficient gold.";
if($uzytkownik['zloto'] >= $przedmiot['cena_kup']){
$opcje = "<a href='sklep.php?typ=".$_GET['typ']."&kup=".$przedmiot['przedmiot']."'>Buy!</a>";
}
PHP Code:
while($przedmiot = mysql_fetch_array($sql)){
$opcje = "Insufficient gold.";
if($uzytkownik['zloto'] >= $przedmiot['cena_kup'] >=$przedmiot['rubies']){
$opcje = "<a href='sklep.php?typ=".$_GET['typ']."&kup=".$przedmiot['przedmiot']."'>Buy!</a>";
}
danke schon mal






