This file contains hidden or 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
2147483647 |
This file contains hidden or 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 | |
$texthtml = 'Who is Sara Bareilles on Sing Off<br> | |
<img alt="Sara" title="Sara" src="475993565.jpg"/><br> | |
<img alt="Sara" title="Sara two" src="475993434343434.jpg"/><br>'; | |
preg_match('/<img.+src=[\'"](?P<src>.+?)[\'"].*>/i', $texthtml, $image); | |
echo $image['src']; | |
?> |
This file contains hidden or 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
function make_json($param) { | |
$array = array(); | |
if(sizeof($param) > 0){ | |
foreach ($param as $row) { | |
if ($row != "") { | |
array_push($array, $row); | |
} | |
} | |
} | |
return json_encode($array); |
This file contains hidden or 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 | |
$c = new CDbCriteria(); | |
Hoge::model()->findAll($c); | |
// SELECT * FROM `hoge` `t` | |
$c = new CDbCriteria(); | |
$c->addSearchCondition('t.fuga', null); // null, false, ''などは無視されるようです | |
Hoge::model()->findAll($c); |
This file contains hidden or 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
SELECT username, COUNT(*) c FROM users GROUP BY username HAVING c > 1 ORDER BY c DESC |
This file contains hidden or 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
function user_agent(){ | |
$iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); | |
$iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); | |
$iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); | |
$android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); | |
file_put_contents('./public/upload/install_log/agent',$_SERVER['HTTP_USER_AGENT']); | |
if($iPad||$iPhone||$iPod){ | |
return 'ios'; | |
}else if($android){ | |
return 'android'; |
This file contains hidden or 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
<p> | |
<b>Ad Soyad </b><br> | |
[text* adsoyad] | |
<br> | |
<b>Doğum Tarihi</b><br> | |
[date* dogumtarihi]<br> | |
<b>Medeni Durum</b><br> | |
[select* medenidurum include_blank "Evli" "Bekar"] | |
<br> | |
<b>Eğitim Durumu</b><br> |
This file contains hidden or 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
$(document).ready(function(){ | |
var $flowers = $('#flower-items'); | |
$('#flower-items').find('a').on('click', function(e){ | |
alert('a'); | |
e.preventDefault(); | |
var $desc = $('#flower-description'); | |
switch($(this).attr('href')) { | |
case 'calla.html' : | |
alert('b') | |
$desc.load('fragments/lilies.html'); |
This file contains hidden or 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
DELETE FROM reads WHERE user_id NOT IN (SELECT id FROM users) |
This file contains hidden or 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
var OBJECTFALSE = new Array(); | |
function contactFormKontrol() | |
{ | |
var retVal = true; | |
if(OBJECTFALSE.length > 0){ | |
for(var i=0; i<OBJECTFALSE.length; i++){ | |
$("#"+OBJECTFALSE[i]).css({"background":"#ffffff"}); | |
} |
NewerOlder