This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<dependency> | |
<groupId>com.dorkbox</groupId> | |
<artifactId>SystemTray</artifactId> | |
<version>3.14</version> | |
</dependency> | |
*/ | |
import java.util.ArrayList; | |
import java.util.HashMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const app = express(); | |
app.use(express.json()) | |
const kullanicilar = [{ | |
"id": 1, | |
"isim": "Lorem Ipsum", | |
"email": "lorem@ipsum.com", | |
"adres": "LA, USA", | |
"tarih": "1570706637487" | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function sil($tablo,$id){ | |
$eski_resim=""; | |
$query = $this->db->query("SELECT * FROM $tablo where id='$id'")->fetch(PDO::FETCH_ASSOC); | |
if ($query){ | |
$eski_resim=$query["resim"]; | |
} | |
unlink("../images/$tablo/$eski_resim"); | |
$stmt = $this->db->prepare("DELETE FROM $tablo WHERE id = :id"); | |
$stmt->bindParam(':id', $id, PDO::PARAM_INT); | |
$sil =$stmt->execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function duzenle($sutun,$deger,$tablo,$resim,$dizin,$id,$en,$boy){ | |
if($sutun!=""){ | |
$tablo_degerleri=explode("--",$deger); | |
$tablo_adlari=explode("--",$sutun); | |
$tablo_degerleri_text=""; | |
for($i=0;$i<count($tablo_adlari);$i++){ | |
$tablo_degerleri_text=$tablo_adlari[$i]."=:".$tablo_adlari[$i].",".$tablo_degerleri_text; | |
} | |
}else{ | |
$tablo_degerleri_text=""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function ekle($sutun,$deger,$tablo,$resim,$dizin,$en,$boy){ | |
if($sutun!=""){ | |
$tablo_adlari=explode("--",$sutun); | |
$tablo_degerleri=explode("--",$deger); | |
$tablo_adlari_text=""; | |
$tablo_degerleri_text=""; | |
for($i=0;$i<count($tablo_adlari);$i++){ | |
$tablo_adlari_text.=$tablo_adlari[$i].','; | |
$tablo_degerleri_text.=":".$tablo_adlari[$i].","; |