示例#1
0
文件: User.php 项目: ng2k12/MercInc
 /**
  * Delete user from agency
  * @param the user you want to delete $otherUserId
  * @param your id $myID
  * @return success/failure;
  */
 public static function deleteFromAgency($otherUserId, $myID)
 {
     $query = "DELETE from agencies Where user_one_id = {$otherUserId} AND user_two_id = {$myID} OR user_one_id = {$myID} AND user_two_id = {$otherUserId} ";
     $result = ConnectionFactory::DeleteRowFromTableComplex($query);
     return $result;
 }