![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#9
|
|||
|
|||
![]()
I thought I needed the query to check the number of rows in the votes table? Sorry Brandon, but could you show me an example..? :S
EDIT: Is this what you meant? Code:
$query = "SELECT * FROM ".$prefix."vote_voters WHERE adoptableid='$id' and date = '$date'"; $result = mysql_query($query); $ctd = mysql_numrows($result); if ($ctd > 99) { $article_title = "Error"; $article_content = "<font color='#cc1111'>This Pet has recieved the maximum of 100 clicks per day</font>"; } else if ($ctd <= 99) { // Add to clicks, levelup and text return } |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Freeze ONLY the evolution, not the clicks | dulop | Questions and Supports | 2 | 09-28-2012 10:29 AM |
Limit amount of clicks per day | SilverDragonTears | Questions and Supports | 15 | 11-29-2011 11:50 AM |
Limit clicks/day to 10 | sensacion | Questions and Supports | 1 | 07-02-2011 05:15 AM |
Days Instead of Clicks | alonaria | Suggestions and Feature Requests | 7 | 06-25-2011 05:27 AM |
No Clicks at all? | rosepose | Questions and Supports | 11 | 03-07-2009 08:42 AM |
What's New? |
What's Hot? |
What's Popular? |