Mercurial > hg > extraction-interface
comparison interface/add_dynasty.php @ 7:0e9a7c69f22c
add editing records/log into TOC correction list page, more editing records could be shown on the TOC page
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 06 Feb 2015 09:44:17 +0100 |
parents | cbbb7ef22394 |
children |
comparison
equal
deleted
inserted
replaced
6:63e08b98032f | 7:0e9a7c69f22c |
---|---|
35 $query="SELECT id, period, start_year FROM books WHERE period='".$matched_period."'"; | 35 $query="SELECT id, period, start_year FROM books WHERE period='".$matched_period."'"; |
36 | 36 |
37 $result=mysql_query($query); | 37 $result=mysql_query($query); |
38 | 38 |
39 if(!$result){ | 39 if(!$result){ |
40 echo json_encode("Failed during querying records."); | 40 echo json_encode("Failed during querying books records."); |
41 return; | 41 return; |
42 } | 42 } |
43 while($row=mysql_fetch_assoc($result)){ | 43 while($row=mysql_fetch_assoc($result)){ |
44 echo $row['id']." ".$row['period']."<br>"; | 44 echo $row['id']." ".$row['period']."<br>"; |
45 if ($row['start_year'] > ($start_year-10) && $row['start_year'] < ($end_year+10)) { | 45 if ($row['start_year'] > ($start_year-10) && $row['start_year'] < ($end_year+10)) { |