Status: There was an error!"); }else{ echo("Status: Promene uspešno ubeležene!"); } } // End of "if action == 'Promeni'" statement if (!$vicid) $vicid = 1; // echo("Akcija je: -".$action."-
\n"); // echo("vicid: -".$vicid."-
\n"); //****************************************************************** //show entries from table vicevi, DB8615 database //****************************************************************** if ($action == "Prethodni") { $sql="select * from $tblvicevi where vicid < $vicid order by vicid desc limit 1"; }elseif ($action == "Sledeci") { $sql="select * from $tblvicevi where vicid > $vicid order by vicid asc limit 1"; }else { $sql="select * from $tblvicevi where vicid >= $vicid order by vicid asc limit 1"; } echo("
\n"); if($result_01 = mysql_query($sql,$conn)) { if ($vicrow = mysql_fetch_array($result_01)) { $vicid = $vicrow["vicid"]; $name = $vicrow["name"]; $email = $vicrow["email"]; $kwords = $vicrow["kwords"]; $categ = $vicrow["categ"]; $subcateg = $vicrow["subcateg"]; $voted = $vicrow["voted"]; $vclass = $vicrow["vclass"]; $vic = ereg_replace( "\n", "\n
", $vicrow["vic"] ); if ($action == "Izmena") { include ("./vic_form.phtml"); }else { include ("./vic_show.phtml"); } }else { ?>
 
  Nema više viceva...
'); //****************************************************************** //shutdown database connection //****************************************************************** mysql_close(); ?>