📄 dates.php
字号:
<?php/* $Id: dates.php 4322 2006-09-04 08:49:33Z shacka $ */ include("config.php"); include($ado_lib_root); include($JSON_lib_root); $conn = &ADONewConnection($dsn); $conn->SetFetchMode(ADODB_FETCH_ASSOC); $query = "SELECT id, day, div1, div2, start_time FROM $table WHERE ((month=".$_GET['month'].") OR (month IS NULL)) AND ((year=".$_GET['year'].") OR (year IS NULL))"; $res = $conn->Execute($query); $json_obj = array(); while (!$res->EOF && $res) { $json_obj[] = $res->fields; $res->MoveNext(); } $json = new Services_JSON(); $output = $json->encode($json_obj); echo $output;?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -