Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages

Örnek Arama: Html renkler , php veri tabanı bağlantısı

PHP / Uncategorized

PDO INSERT Try Catch Kontrolü

try{
$data = [
    'slider_url' => $slider_url,
    'slider_sira' => $slider_sira,
    'slider_durum' => $slider_durum
];

$sql = "INSERT INTO slider (slider_url,slider_sira, slider_durum) VALUES (:slider_url, :slider_sira, :slider_durum)";
$slider= $db->prepare($sql);
$slider->execute($data);	
	


echo "Slider Eklendi";
}
catch(PDOException $e){
	echo "eklenemedi".$e->getMessage();
}
0 0 vote
Article Rating
Subscribe
Bildir
guest
0 Yorum
Inline Feedbacks
View all comments