Changeset 15155 for trunk/FACT++/www/shift/calendar.php
- Timestamp:
- 03/26/13 17:16:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/shift/calendar.php
r13687 r15155 142 142 if (mysql_affected_rows()==0) 143 143 { 144 if (!mysql_query("INSERT Data SET y=".$y.", m=".$m.", d=".$d.", u='".$u."'")) 144 $x = $_GET['x']; 145 if (!mysql_query("INSERT Data SET y=".$y.", m=".$m.", d=".$d.", x=".$x.", u='".$u."'")) 145 146 return header('HTTP/1.0 500 '.mysql_error()); 146 147 } 147 148 } 148 149 149 $query = "SELECT d, u FROM Data WHERE y=".$y." AND m=".$m;150 $query = "SELECT d, u, x FROM Data WHERE y=".$y." AND m=".$m; 150 151 if (isset($_GET['d'])) 151 152 $query .= " AND d=".$_GET['d']; … … 156 157 157 158 while ($row = mysql_fetch_array($result, MYSQL_NUM)) 158 print($row[0]."\t".$row[1]."\ n");159 print($row[0]."\t".$row[1]."\t".$row[2]."\n"); 159 160 ?>
Note:
See TracChangeset
for help on using the changeset viewer.