$co"; else return $co; } function vyp_pol_ot_od($res) { $num = mysql_numrows($res); if ($num > 0) {echo "Počet záznamů : $num.\n";} else {echo "Nenalezen žádný záznam.\n";return;} echo "

\n"; for ($veta=0; $veta<$num; $veta++){ $pol=mysql_fetch_row($res); # $klic=$pol[0]; if ($pol[0]!=$otazka) { $ota=$pol[1]."

"; switch ($pol[2]){ case '#@#': $ota.='Přeji pěkný den. Libor Vejpustek'; break; default: if ($pol[3]) $ota.=""; $ota.="$pol[2]"; if ($pol[3]) $ota.=""; } $rad="Otázka č. ".$pol[0]." (".substr($pol[4],6,2).".". substr($pol[4],4,2).".".substr($pol[4],0,4)." " .substr($pol[4],8,2).":".substr($pol[4],10,2).")"; $ota.="
"; echo "
$rad
\n$ota