Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 3a071bba

Přidáno uživatelem Ondřej Anděl před téměř 4 roky(ů)

Fix: merge-fix (brackets)

Zobrazit rozdíly:

application/model/DB.php
684 684
    }
685 685

  
686 686

  
687
}
688

  
689

  
687 690
}
688 691

  
689 692
function remove(){
......
716 719
        } TODO: fix tag */
717 720

  
718 721
    // ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| Tabulka dd_wordform |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
719
        if (array_key_exists("id", $_POST) && $_POST['id'] != "") {
720
            $query = "DELETE FROM dd_wordform WHERE";
721
            $query .= " id = :id ;";
722
            $this->stmt = $this->pdo->prepare($query);
723
            $this->stmt->bindParam(':id', $_POST['id'], PDO::PARAM_INT);
724
            $this->stmt->execute();
725
        }
726
}
727

  
722
    if (array_key_exists("id", $_POST) && $_POST['id'] != "") {
723
        $query = "DELETE FROM dd_wordform WHERE";
724
        $query .= " id = :id ;";
725
        $this->stmt = $this->pdo->prepare($query);
726
        $this->stmt->bindParam(':id', $_POST['id'], PDO::PARAM_INT);
727
        $this->stmt->execute();
728
    }
728 729
}
729 730

  
730 731
// (D) DATABASE SETTINGS - CHANGE TO YOUR OWN!

Také k dispozici: Unified diff