/[libdata]/trunk/publish.phtml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/publish.phtml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 71 by dpavlin, Thu Mar 4 22:43:50 2004 UTC revision 72 by dpavlin, Thu Mar 18 20:33:37 2004 UTC
# Line 17  if ($page_id > 0 ) { Line 17  if ($page_id > 0 ) {
17    
18          // Check to see if it exists first          // Check to see if it exists first
19          $exists = 0;          $exists = 0;
20          $exists = existsRow($con, "page", "page_id", $page_id);          $exists = existsRow("page", "page_id", $page_id);
21    
22          if ($exists > 0) {          if ($exists > 0) {
23    
24                  // Build the SQL to extract the static snapshot                  // Build the SQL to extract the static snapshot
25                  $sql = "SELECT pageHTML from page WHERE page_id = " . $page_id;                  $sql = "SELECT pageHTML from page WHERE page_id = " . $page_id;
26                  $rs = xx_query($sql, $con);                  $rs = xx_tryquery($sql);
27                  $row = xx_fetch_array ($rs);                  $row = xx_fetch_array ($rs, xx_ASSOC);
28    
29                  // Fetch data                  // Fetch data
30                  $pageHTML = $row["pageHTML"];                  $pageHTML = $row["pageHTML"];

Legend:
Removed from v.71  
changed lines
  Added in v.72

  ViewVC Help
Powered by ViewVC 1.1.26