![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#10
|
||||
|
||||
![]() Quote:
So the image would be linked like <a href="yoursite.com/get/1">image</a> You'd just need to change the links in this case. The number after the link would match the IDs in your adoptables table. So when someone visited a get/ID page, you would need to: 1) Cut the link to get the last part (the ID) 2) Check if ID exists 3) Check if ID is actually an adoptable that can be adopted through this way (people WILL try to adopt other adoptables through this link). You can do a manual check (for example if your monthly adoptables are 1, 2 and 5 you can check if the ID in the link is 1, 2 or 5). Or you can try to pull the ID from the adoptables table to see if it exists. To check if it is one of your monthly adoptables, you can add an extra column to the table called "active", which would contain "true" if it is currently obtainable or false otherwise. Then with the ID you would check the contents of that column If it passes the verifications, do a db insert. If not, throw an error I can try to help you go through each step
__________________
![]() ![]() ![]() asp.net stole my soul. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A small question regarding adoption limits and promo codes..c: | Pear | Feedback and Suggestions | 2 | 06-25-2014 10:06 PM |
Promo Codes | SilverDragonTears | Questions and Supports | 2 | 06-30-2012 01:22 PM |
Promo And Banning | Alaric | Questions and Supports | 5 | 04-20-2012 08:28 AM |
News/kinda forum script help | SilverDragonTears | Questions and Supports | 0 | 10-22-2011 06:48 PM |
1 Promo per person | Xius | Questions and Supports | 4 | 09-21-2009 05:55 PM |
What's New? |
What's Hot? |
What's Popular? |