You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$dokumentiPortfelji = mysql_fetch_array(mysql_query("SELECT * FROM dokument_portfelj WHERE portfelj_dokumenata='".$_GET['portfelj']."' AND dokument='".$_GET['dokument']."'"));
if(isset($dokumentiPortfelji[0]))
{
mysql_query("DELETE FROM dokument_portfelj WHERE portfelj_dokumenata='".$_GET['portfelj']."' AND dokument='".$_GET['dokument']."'") or die (mysql_error());
}else{
mysql_query("INSERT INTO dokument_portfelj VALUES('".$_GET['dokument']."','".$_GET['portfelj']."')") or die (mysql_error());