Location: PHPKode > projects > Wiki Web Help > wwh/handlers/editdiff.php
<?php

$text = $_POST['text'];

require_once("../config.php");
include("htmldiff.php");

$id = intval($_POST['id']);
	
$sql = "SELECT page_text FROM page WHERE node_id=$id";
$result = mysql_query($sql,$con) or die("Database Error - Unable to save page.");

$current = stripslashes(mysql_result($result,0,'page_text'));
echo html_diff($current, $text, $id, 'page', true);

?>
Return current item: Wiki Web Help