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
<html> | |
<head> | |
<link href="dist/css/datepicker.min.css" rel="stylesheet" type="text/css"> | |
<script src="dist/js/datepicker.min.js"></script> | |
<!-- Include English language --> | |
<script src="dist/js/i18n/datepicker.en.js"></script> | |
</head> | |
</html> |
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
<input type='text' class='datepicker-here' data-language='en' /> |
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 | |
// BASİT KULLANIM | |
$adi = "Serhan Özcan"; // Bu değişkenimiz. | |
echo $adi == "Serhan Özcan" ? "Doğru" : "Yanlış"; //Çıktı: Doğru | |
/* | |
Üstteki örnekte $adi değişkeninin Serhan Özcan'a eşit olup olmadığını soruyoruz. | |
Ve bildiğimiz if yapısının aksine koşuldan sonra "?" işareti ile sorguyu kontrol ediyoruz. |
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 | |
function go ($url, $time = 0){ | |
if ($time) header("Refresh: {$time}; url={$url}"); | |
else header("Location: {$url}"); | |
} | |
// Alttaki gibi kullanılır ise 10 saniye sonra yönlendirir. | |
go("siteadi.com", 10); | |
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 | |
$email = "[email protected]"; | |
if ( filter_var($email, FILTER_VALIDATE_EMAIL) ){ //Burası gelen değerin mail türünde olup olmadığını denetler. | |
print 'e-mail gecerli'; | |
} else { | |
print 'e-mail gecersiz!'; | |
} | |
?> |
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 | |
function kisalt($kelime, $str = 10) | |
{ | |
if (strlen($kelime) > $str) | |
{ | |
if (function_exists("mb_substr")) $kelime = mb_substr($kelime, 0, $str, "UTF-8").'..'; | |
else $kelime = substr($kelime, 0, $str).'..'; | |
} | |
return $kelime; |
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 | |
//// Database connection | |
header('Content-Type: text/html; charset=utf-8'); | |
$k_id = "username"; // database username | |
$k_pass = "password"; // database password | |
$k_host = "localhost"; // host | |
$k_db = "database"; // database name |
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
/* | |
##Cihaz = Masaüstü | |
##Ekran = 1281px 'den yüksek çözünürlükler için | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
} |
OlderNewer