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 = xx_tryquery($sql); |
27 |
$row = mysql_fetch_array ($rs); |
$row = xx_fetch_array ($rs, xx_ASSOC); |
28 |
|
|
29 |
// Fetch data |
// Fetch data |
30 |
$pageHTML = $row["pageHTML"]; |
$pageHTML = $row["pageHTML"]; |