--- html/index.php 2000/06/28 12:39:01 1.6 +++ html/index.php 2000/07/31 18:03:05 1.7.2.1 @@ -5,8 +5,9 @@ if (isset($kontakt_osoba_id)) { - $result = pg_Exec ($conn, "select ime,prezime,passwd from kontakt_osobe where aktivna=true and id=$kontakt_osoba_id"); - $row=pg_fetch_array($result,0); + $sth = $dbh->prepare("select ime,prezime,passwd from kontakt_osobe where aktivna=true and id=$kontakt_osoba_id"); + $sth->execute(); + $row=$sth->fetchrow_hash(); print "Trenutno ste prijavljeni kao $row[ime] $row[prezime], ako je to krivo odaberite ovaj link."; } # print "--$kontakt_osoba_id--"; @@ -40,12 +41,10 @@