Location: PHPKode > projects > MembersGear > membersgear/includes/agreementavailableMember.php
<?php
require_once("../config/config.php"); 
require_once(INCLUDE_DIR."/users_class.php");  
$finalString='';  
if(isset($_POST['products']))
 {
       $a = trim($_POST['products']);
       sleep(1);  
        $users = new users_class();
        
        $result = $users->view('select displayagreement from '.TABLE_PREFIX.'products where id=?',array($a),null);
        $Valueresult=$result[0]['displayagreement'];
        
        if($Valueresult==1)
           $finalString='yes';
         else
           $finalString='no';
        
       echo $finalString;      
       
 }

 
 exit;
/* Initiliaze php ajax*/

?>
Return current item: MembersGear