/[libdata]/branches/paul/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 /branches/paul/publish.phtml

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

revision 66 by dpavlin, Fri Dec 5 18:40:01 2003 UTC revision 67 by dpavlin, Thu Mar 18 19:24:54 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 = mysql_query($sql, $con);                  $rs = mysql_tryquery($sql);
27                  $row = mysql_fetch_array ($rs);                  $row = mysql_fetch_array ($rs, MYSQL_ASSOC);
28    
29                  // Fetch data                  // Fetch data
30                  $pageHTML = $row["pageHTML"];                  $pageHTML = $row["pageHTML"];

Legend:
Removed from v.66  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.26