global $wpdb;
$purim_names = $wpdb->get_results (“SELECT * FROM wp_purim_donate ORDER BY id DESC”);
$all_names =”;
foreach($purim_names as $print ){
if($print->name != ”){
$all_names .= ($print->name).’.‘;

$ttlamont= 0;
$purim_result = $wpdb->get_results ( “SELECT * FROM wp_purim_donate” );
foreach ( $purim_result as $print ) {
$ttlamont = $ttlamont + ($print->amount);

$info = ‘USER=ari_api1.chayalelchayal.org’

$curl = curl_init(‘https://api-3t.paypal.com/nvp’);
curl_setopt($curl, CURLOPT_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($curl, CURLOPT_POSTFIELDS, $info);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_POST, 1);

$result = curl_exec($curl);

# Bust the string up into an array by the ampersand (&)
# You could also use parse_str(), but it would most likely limit out
$result = explode(“&”, $result);

# Loop through the new array and further bust up each element by the equal sign (=)
# and then create a new array with the left side of the equal sign as the key and the right side of the equal sign as the value
foreach($result as $value){
$value = explode(“=”, $value);
$temp[$value[0]] = $value[1];

for($i=0; $i<(count($temp)/11)-1; $i++){
$returned_array[$i] = array(
“timestamp” => urldecode($temp[“L_TIMESTAMP”.$i]),
“timezone” => urldecode($temp[“L_TIMEZONE”.$i]),
“type” => urldecode($temp[“L_TYPE”.$i]),
“email” => urldecode($temp[“L_EMAIL”.$i]),
“name” => urldecode($temp[“L_NAME”.$i]),
“transaction_id” => urldecode($temp[“L_TRANSACTIONID”.$i]),
“status” => urldecode($temp[“L_STATUS”.$i]),
“amt” => urldecode($temp[“L_AMT”.$i]),
“currency_code” => urldecode($temp[“L_CURRENCYCODE”.$i]),
“fee_amount” => urldecode($temp[“L_FEEAMT”.$i]),
“net_amount” => urldecode($temp[“L_NETAMT”.$i]));

$paypal_names =”;
$net_amount = 0;
foreach($returned_array as $value){
if($value[‘name’] != ”){
$paypal_names .= $value[‘name’].’.‘;

if($value[‘net_amount’] != ”){
$net_amount = $value[‘net_amount’]+$net_amount;

$ttlamont = $ttlamont + $net_amount;
$ttlamont = $ttlamont/18;
$ttlamont = (int)$ttlamont;
$ttlamont = $ttlamont +5;

$percentage = ( $ttlamont /1000) * 100;
if($percentage > 100){
$percentage = 100;

Thank You To Our Donors!

Mishloach Manot Donations!


  • One Soldier
    1 mishloach manot
  • Squad
    4 mishloach manot
  • Team
    15 mishloach manot
  • Platoon
    50 mishloach manot
  • Company
    100 mishloach manot

Be a Partner


Chaim is an IDF Infantry soldier stationed in Jenin. He will be spending Purim protecting our Land and our People instead of celebrating this joyous festival with his family.

It’s not just Chaim’s story.

There are thousands of soldiers who will be on base this Purim

It is up to us to show we care by giving them Mishloach Manot to enjoy while guarding the front lines.

Be a partner in helping the soldiers by sponsoring Mishloach Manot for an IDF: Company, Platoon, Team, Squad or a Lone Soldier.

Goal: 3,000 Mishloach Manot


Think it’s possible to create 3,000 Mishloach Manot and give them out at over 40 bases on Purim?

We think it is! But we can only do it with your help!

Donate 1, 10, or 20 Mishloach Manot and make hundreds of IDF soldiers smile this Purim.


If you would like assistance with your donation, please contact Chayal el Chayal at USA 1.347.717.4949 – IL 972.52.613.2170 or email us at purim@chayalelchayal.org.

All checks should be mailed to Chayal el Chayal, 13347 Ventura Blvd. Sherman Oaks, CA 91423.

*US tax deductible receipts available upon request.

Thank you for your support!


fb_icon cec_icon yt_icon

© Copyright 2011 – The IDF Purim Project – ALL RIGHTS RESERVED.

Chayal el Chayal | The IDF Lone Soldiers’ Home Away From Home