is there anyway to find out how many times someone has clicked adoptables?

Forum
Last Post
Threads / Messages

aroymart

Member
Member
Joined
Jan 10, 2009
Messages
74
Points
0
Mysidian Dollar
4,272
is there anyway to find out how many times someone has clicked adoptables throughout there entire time being signed up? if so a "shop" wouldn't be hard couldn't you just put something like

PHP:
if ($clicks >= 100)
{
??????
}
[/php]
without having to access the mySQL, i can't access it myself
 
You could do:

PHP:
$query = "SELECT * FROM vote_voters WHERE username = '$username'";
$result = mysql_query($query);
$num = mysql_numrows($result);

The number of times a user clicked on ANY adoptable EVER will be stored in $num. :)

Brandon
 
sweet so that means we can include badges,special adoptables,and unlockables! this is going to bring a whole new wave of scripts!!!!


how would i do this? like this?

PHP:
if ($num <= 100)
{
echo "hello! congrats you have reached a break point <br> your prize is..............<br><br>  a new adopt, email aroymart@yahoo.com to get the special adopt!"
}
 
Well, you have it if the number is less than or equal to 100, should be $num >= 100 instead, but yeah, just put your code between the if brackets. :)
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top