Changeset 13687 for trunk/FACT++/www/shift/calendar.php
- Timestamp:
- 05/13/12 11:30:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/shift/calendar.php
r13685 r13687 81 81 if (isset($_GET['comment'])) 82 82 { 83 if (!isset($_GET['d'])) 84 return; 85 86 $d = $_GET['d']; 87 88 $query = "SELECT c FROM Comments WHERE y=".$y." AND m=".$m." AND d=".$d; 83 $query = "SELECT d, c FROM Comments WHERE y=".$y." AND m=".$m; 84 if (isset($_GET['d'])) 85 $query .= " AND d=".$_GET['d']; 89 86 90 87 $result = mysql_query($query); … … 92 89 return header('HTTP/1.0 500 '.mysql_error()); 93 90 94 $row = mysql_fetch_array($result, MYSQL_NUM); 91 if (isset($_GET['d'])) 92 { 93 $row = mysql_fetch_array($result, MYSQL_NUM); 94 print($row[1]); 95 return; 96 } 95 97 96 print($row[0]); 98 while ($row = mysql_fetch_array($result, MYSQL_NUM)) 99 { 100 printf("%04d%02d%s", strlen($row[1]), $row[0], $row[1]); 101 } 97 102 98 103 return;
Note:
See TracChangeset
for help on using the changeset viewer.