本文整理匯總了PHP中Transfer::find_by_sql方法的典型用法代碼示例。如果您正苦於以下問題:PHP Transfer::find_by_sql方法的具體用法?PHP Transfer::find_by_sql怎麽用?PHP Transfer::find_by_sql使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Transfer
的用法示例。
在下文中一共展示了Transfer::find_by_sql方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: strtotime
$newVisa->set($_GET['id'], strtotime($_POST['visaTo']));
$newVisa->save();
}
if (isset($_POST['transFrom'])) {
$newTrans = new Transfer();
$newTrans->set($_GET['id'], $_POST['assoc'], strtotime($_POST['transFrom']));
$newTrans->save();
}
$teams = Team::find_all();
$assocs = Assoc::find_all();
if ($player->category == 1) {
$contracts = Contract::find_by_sql("SELECT * FROM contracts WHERE player={$player->id} ORDER BY date_of_reg ASC");
$insurances = Insurance::find_by_sql("SELECT * FROM insurances WHERE player={$player->id} ORDER BY added_on ASC");
$visas = Visa::find_by_sql("SELECT * FROM visas WHERE player={$player->id} ORDER BY added_on ASC");
$loans = Loan::find_by_sql("SELECT * FROM loans WHERE player={$player->id} ORDER BY start ASC");
$transfers = Transfer::find_by_sql("SELECT * FROM transfers WHERE player={$player->id} ORDER BY start ASC");
$contractTeam = $player->find_contract_team();
$currentTeam = $player->find_current_team();
$transTo = Assoc::find_by_sql("SELECT * FROM assocs WHERE id = (SELECT assoc FROM transfers WHERE player = {$_GET['id']} AND returned = 0)");
}
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<meta charset="UTF-8">
<title> Goa FA | Search</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.4 -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">