| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | little help here will pay if needed im wondering how i would make a php page only be allowed to be used twice its a certain page in a rpg game that will wipe out all men it is a attack but i want to limit it to be used twice per round so i will need a calling to mysql for hitman that will noty allow it if they try to attack that player but they can still attack other players but limited to two times per player
__________________ Hostile-Territory |
| |
| | #2 (permalink) |
| NamePros Member | I don't know if I understood your problem, but it seems an easy thing to code. When entering that page, just check the number of times that user entered it before and, if this number is >1 (i.e. == 2) you know he already accesed it two times for that date. Just show a warning and return :-?
__________________ technfo.com - pick.pk - ajaxpro.es - gbt.es - jamones.cn - sqzd.com - geoinfo.net Free URL Redirection (for sale) (62,000+ subdomains and growing!!) Real IP / Proxy IP |
| |
| | #4 (permalink) |
| I'll do it Technical Services | I have one more thing to add here. Just make sure that search engine bots don't get confused in this situation. Moreover if you make special privileges for search engine bots then it will be considered as cloaking. So please think of a way to show the page to users after they login or something and then over there you can track them according to their usernames or userid's Thanks.
__________________ Vhuv|Delq|Fhur|Twut|Tluz|Kegh|Vhir|Juhy|Ruuz|Jyos|Jupt|Vhek Webmaster Blog | Software Downloads Sponsor Ads at SponAds.com |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |