Jump to content


Photo

Views counter


  • Please log in to reply
5 replies to this topic

#1 feri_soft

feri_soft
  • Members
  • PipPipPip
  • Advanced Member
  • 147 posts

Posted 08 October 2006 - 07:38 AM

How to create a simple view counter?

CAn it work just by adding one query to update views in the beggining of the file??

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 08 October 2006 - 07:46 AM

sure, you can do that.  are you asking how you would perform the update query?
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 feri_soft

feri_soft
  • Members
  • PipPipPip
  • Advanced Member
  • 147 posts

Posted 08 October 2006 - 01:06 PM

The problem is that i have a search query and it returns some results and then when click i go to another file and vie the details using get command...i am not sure where to put tha update query

#4 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 08 October 2006 - 01:22 PM

You can put it at the very start of the file.

Orio.
Think you're smarty?

(Gone until 20 to November)

#5 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 08 October 2006 - 01:29 PM

i am sure this is correct?

little example.
<?php
$query-"update counter set counting=counting+1 where id='$id'";
$result=mysql_query($query);
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#6 feri_soft

feri_soft
  • Members
  • PipPipPip
  • Advanced Member
  • 147 posts

Posted 09 October 2006 - 02:26 PM

nice one :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users