1
alhelalat
Re: Database updates processing of a GET request
  • 2008/11/27 9:19

  • alhelalat

  • Just popping in

  • Posts: 4

  • Since: 2008/8/26


frankblack thank you



2
alhelalat
Re: Database updates processing of a GET request
  • 2008/11/27 9:11

  • alhelalat

  • Just popping in

  • Posts: 4

  • Since: 2008/8/26


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 ????



3
alhelalat
Database updates processing of a GET request
  • 2008/11/26 21:24

  • alhelalat

  • Just popping in

  • Posts: 4

  • Since: 2008/8/26


XOOPS dos not allow database update when the code processing of a GET request?
what is the right way to update XOOPS database
during processing of a GET
??



4
alhelalat
Re: Article 2.0RC for Xoops 2.3x Testing Reviews
  • 2008/10/15 10:52

  • alhelalat

  • Just popping in

  • Posts: 4

  • Since: 2008/8/26


The Article module is Wonderful but i have a comment it is not a bug
it is search engine optimize
take alook at any article url it's some think like this
article/view.article.php/catid/articleid
take alook at the same article url on the rss you will find it different url
this make duplicated contents and drop my search engine traffic rank .
thanks have nice day




TopTop



Login

Who's Online

177 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits