Thread: Adopt Center
View Single Post
  #8  
Old 12-26-2011, 03:03 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,825
Alaric is on a distinguished road
Default

As You See Here http://www.mysidiaadoptables.com/for...ead.php?t=1987 see step 6 below:

6. Now, to prevent some users from cheating. Open your doadopt.php, we'll just do a slight query modification.

Find this query

PHP Code:
$query = "SELECT * FROM ".$prefix."adoptables WHERE id='$id'";

replace that query with this one

PHP Code:
$query = "SELECT * FROM ".$prefix."adoptables WHERE id='$id' AND whenisavail = 'promo'";

We just restricted the doadopt.php file to only work with adoptables with promo code.



The code is different in MYS V.1.2.4 which i use see below:
PHP Code:
$query = "SELECT * FROM {$prefix}adoptables WHERE id={$id}";
So Now What Should I Do Here To This Script?

Last edited by Alaric; 12-26-2011 at 04:50 AM.
Reply With Quote