\n"); echo("\n
\n
$ERRMSG

\n
\n"); exit(0); } if (msqlSelectDB($sock, "babba")<0) { echo("
\n"); echo("\n
\n
$ERRMSG

\n
\n"); exit(0); } $cena=0; if (#$selected>1) { $n=0; echo("\n\n"); echo("\n"); while($n<#$selected) { if ((int)$selected[$n]>0) { if (msqlQuery($sock, "SELECT * FROM parts WHERE no=$selected[$n]")<0) { echo("
Izabrana konfiguracija:

\n"); echo("\n
\n
WARNING: $ERRMSG

\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
\n
WARNING: $ERRMSG

\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
\n
WARNING: $ERRMSG

\n
\n"); exit(0); } $sd=msqlStoreResult(); $part=msqlFetchRow($sd); echo("\n\n"); echo("\n"); while(#$part>0) { echo("\n"); $part=msqlFetchRow($sd); } msqlFreeResult($sd); echo("
PartPrice

$part[2]$part[3]

\n"); $grupa=msqlFetchRow($fd); } msqlFreeResult($fd); msqlClose($sock); >