Example #1
0
File: save.php Project: hshoghi/cms
<?php

//This file will save keywords in the database
#make a new keyword for a blog by adding existing keyword and new keyword
if (trim($_POST['blog_keywords']) != "") {
    $_POST['keyword'] = $_POST['blog_keywords'] . "," . $_POST['keyword'];
}
$blog_id = $_REQUEST['blog_id'];
$aql = "blog {\n            keywords as keyword\n\t\t\twhere id ={$blog_id}\n        }";
aql::save();
$rs = aql::select($aql);
echo $rs[0]['keyword'];
?>