include "../top.html";
// *********** DB *************
$db_name='correct';
$spojeni=mysql_connect('localhost','correct','reprak106');
if (mysql_select_db($db_name,$conn)==false) {
echo '
Error nelze zvolit db: $db_name
';exit;
}
$ddd="select obchodnik from zakaznik where uzivatel='".$uzivatel1."'";
$vysledek = mysql_query($ddd,$spojeni);
$pocet=mysql_Num_Rows($vysledek);
if ($pocet>0) $obchodnik=mysql_result($vysledek,0,"obchodnik");
// ****************************
?>
| |||||||||||||||||||||||||||||
typ | popis |
if ($obchodnik=="a"):
echo "Cena bez DPH"; else: echo "MC s DPH Kč"; endif; ?> |
|||||||||||||||||||||||||||
>Vz1.1Ob | Víčko obyčejné - 2 otvory - bílé | if ($obchodnik=="a"): echo "12"; $cc=StrStr("12",","); if (!$cc): echo ",-"; endif; else: echo "18"; $cc=StrStr("18",","); if (!$cc): echo ",-"; endif; endif; ?> | >![]() |
||||||||||||||||||||||||||
>Vz5.1Ob | Víčko obyčejné - 3 otvory - bílé | if ($obchodnik=="a"): echo "17"; $cc=StrStr("17",","); if (!$cc): echo ",-"; endif; else: echo "25"; $cc=StrStr("25",","); if (!$cc): echo ",-"; endif; endif; ?> | >![]() |