3
Dear ghia
thanks for the reply
i know php am not a professional as XOOPS team .
i wanna develop a new module it is a forum module .
am using this kind of url
Quote:
XOOPS_SITE/module/forum/index.php?a=vtopic&t=16
lets say i want to update number of topic views .
$a=$_GET['a'];
if ($a==vtopic){$action=vtopic;}
else {$action=somethingelse;}
$t=intval($_GET['t'])
here gos some code to out put the topic data .
then
$xoopsDB->query("UPDATE table SET topic_numviews=topic_numviews+1 WHERE topic_id='".$t."'");
i know if i use mysql_query instate of $xoopsDB->query
it would work fine
but i want to share this module with XOOPS community so i try to make it professional how much it is possible not only for me for the community as well
so what is the right way to process a kind of this queries ????