\n"); echo("
\n
$ERRMSG
\n
\n
\n"); exit(0); } if (msqlSelectDB($sock, "babba")<0) { echo("
\n"); echo("
\n
$ERRMSG
\n
\n
\n"); exit(0); } $cena=0; if (#$selected>1) { $n=0; echo("
\n
Izabrana konfiguracija:
\n"); echo("
\n"); while($n<#$selected) { if ((int)$selected[$n]>0) { if (msqlQuery($sock, "SELECT * FROM parts WHERE no=$selected[$n]")<0) { echo("
\n"); echo("
\n
WARNING:
$ERRMSG
\n
\n
\n"); exit(0); } $fd=msqlStoreResult(); $part=msqlFetchRow($fd); echo("
$part[2]
$part[3]
"); $cena=$cena+(int)$part[3]; msqlFreeResult($fd); } $n=$n + 1; } echo("
\n"); echo("
Ukupna cena (Dm)
$cena
\n"); $dinara=$cena*$dm; echo("
Ukupna cena (din)
$dinara
\n"); echo("
\n"); exit(0); } if (msqlQuery($sock, "SELECT * FROM grupe")<0) { echo("
\n"); echo("
\n
WARNING:
$ERRMSG
\n
\n
\n"); exit(0); } $fd=msqlStoreResult(); $grupa=msqlFetchRow($fd); while(#$grupa>0) { echo("$grupa[2]
\n"); if (msqlQuery($sock, "SELECT * FROM parts WHERE gid=$grupa[0]")<0) { echo("
\n"); echo("
\n
WARNING:
$ERRMSG
\n
\n
\n"); exit(0); } $sd=msqlStoreResult(); $part=msqlFetchRow($sd); echo("
\n
Part
Price
\n"); echo("
\n"); while(#$part>0) { echo("
$part[2]
$part[3]
\n"); $part=msqlFetchRow($sd); } msqlFreeResult($sd); echo("
\n"); $grupa=msqlFetchRow($fd); } msqlFreeResult($fd); msqlClose($sock); >