Skip to content

Instantly share code, notes, and snippets.

View Khan143's full-sized avatar

Naveed Khan Khan143

  • Uexel
  • Islamabad
View GitHub Profile
public function actionSearch($q=''){
$q = addcslashes($q, '%_');
$criteria1 = new CDbCriteria;
$criteria1->addCondition("first_name LIKE :first_name", 'OR');
$criteria1->addCondition('last_name LIKE :last_name', 'OR');
$criteria1->params = array(':first_name'=>"%$q%", ':last_name'=>"%$q%");
$members = Members::model()->findAll($criteria1);
<?php
/**
* Plugin Name: Easy Digital Downloads - PayPal Handling Fee
* Description: Adds a handling fee to EDD purchases that go through PayPal
* Author: Pippin Williamson
* Author URI: http://pippinsplugins.com
* Contributors: mordauk
* Version: 1.0
*/