$p="0"; $s3=0; $r=date("Y"); $m=date("n"); $mesice=array(Year, January, February, March, April, May, June, July, August, September, October, November, December); $vyber=array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); mysql_connect("localhost", "lspz", "HESLOspz111"); mysql_query('SET CHARACTER SET "cp1250"'); mysql_select_db("lspz"); if ($r<>"0") $vysledek=mysql_query("select * from novinky where rok=$r"); while ($zaznam=MySQL_Fetch_Array($vysledek)): if ($zaznam["mesic"]=="1" AND $zaznam["text_p"]<>"") $vyber[1]=1; if ($zaznam["mesic"]=="2" AND $zaznam["text_p"]<>"") $vyber[2]=1; if ($zaznam["mesic"]=="3" AND $zaznam["text_p"]<>"") $vyber[3]=1; if ($zaznam["mesic"]=="4" AND $zaznam["text_p"]<>"") $vyber[4]=1; if ($zaznam["mesic"]=="5" AND $zaznam["text_p"]<>"") $vyber[5]=1; if ($zaznam["mesic"]=="6" AND $zaznam["text_p"]<>"") $vyber[6]=1; if ($zaznam["mesic"]=="7" AND $zaznam["text_p"]<>"") $vyber[7]=1; if ($zaznam["mesic"]=="8" AND $zaznam["text_p"]<>"") $vyber[8]=1; if ($zaznam["mesic"]=="9" AND $zaznam["text_p"]<>"") $vyber[9]=1; if ($zaznam["mesic"]=="10" AND $zaznam["text_p"]<>"") $vyber[10]=1; if ($zaznam["mesic"]=="11" AND $zaznam["text_p"]<>"") $vyber[11]=1; if ($zaznam["mesic"]=="12" AND $zaznam["text_p"]<>"") $vyber[12]=1; endwhile; ?>
| ||
for ($i = "1"; $i <= $m; $i++) { ?> |
|