/[hr-web]/NovaUstanova.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /NovaUstanova.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dpavlin, Wed Apr 25 13:18:46 2001 UTC revision 1.3 by ravilov, Wed Jun 19 18:32:42 2002 UTC
# Line 5  Line 5 
5                  if (isparam("wb_OK") && $naziv && $grad) {                  if (isparam("wb_OK") && $naziv && $grad) {
6                          include("inc/conn.php");                          include("inc/conn.php");
7                          DBOpen();                          DBOpen();
                         $id = DBQuery("SELECT MAX(sifra) FROM ustanove");  
                         $id = $id[0][0] + 1;  
8                          $naziv = ISO_Win($naziv);                          $naziv = ISO_Win($naziv);
9                          $grad = ISO_Win($grad);                          $grad = ISO_Win($grad);
10                          DBQuery("INSERT INTO ustanove (sifra,naziv,grad,language) VALUES ($id,'$naziv','$grad','$language')");                          DBQuery("INSERT INTO ustanove (naziv,grad,language) VALUES ('$naziv','$grad','$language')");
11                          $ret = $DBH->errstr;                          $ret = $DBH->errstr;
12                          DBClose();                          DBClose();
13                  }                  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26