Location: PHPKode > projects > PHP-Comics > php-comics/ajax/read.php
<?php
    include('../inc/inc.php');
	$isread = addslashes($_POST['isread']);
	$id = addslashes($_POST['ID']);
	DB::Query("INSERT INTO Bookmark (Book,UID,IsRead) VALUES ($id,$_SESSION[UID],$isread) ON DUPLICATE KEY UPDATE IsRead = $isread",1);
	echo 1;
?>
Return current item: PHP-Comics