Bug fixes
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
public function getInhaltsstoff(){
|
||||
$pdo=$this->linkDB();
|
||||
$sql = "SELECT * FROM Inhaltsstoff";
|
||||
$sql = "SELECT * FROM Inhaltsstoff;";
|
||||
try{
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt->execute();
|
||||
@@ -49,7 +49,7 @@
|
||||
public function deleteInhaltsstoff($id){
|
||||
$pdo=$this->linkDB();
|
||||
$params = array();
|
||||
$sql = "DELETE FROM Inhalsstoff WHERE id=:id";
|
||||
$sql = "DELETE FROM Inhalsstoff WHERE id=:id;";
|
||||
$params[":id"] = $id;
|
||||
try{
|
||||
$stmt = $pdo->prepare($sql);
|
||||
|
Reference in New Issue
Block a user