Ejemplo n.º 1
0
 public function getLikedNumByUID($UID)
 {
     $likea = new likeA();
     $answer = new answer();
     $AIDS = $answer->getAIDsbyUID($UID);
     $sum = 0;
     for ($i = 0; $i < count($AIDS); $i++) {
         $sum += $likea->getLikenumbyAID($AIDS[$i]);
     }
     return $sum;
 }