getListRowcount($query); if(!empty($rows)){ return $rows[0]['num']; } } function getRowCount($tablename,$param){ $db = new DB(); $rows = $db->getRows($tablename,$param); if(!empty($rows)){ return count($rows); } } function getSingleRecord($tablename,$param){ $retarray =array(); $db = new DB(); $rows = $db->getRows($tablename,$param); if(!empty($rows)){ return $rows; } } function deleteSingleRecord($tablename,$conditions){ $db = new DB(); $rows = $db->delete($tablename,$conditions); if(!empty($rows)){ return $rows; } } function insertSingleRecord($tablename,$param){ $db = new DB(); $insert = $db->insert($tablename,$param); return $insert; } function updateSingleRecord($tablename,$userData,$condition){ $db = new DB(); $update = $db->update($tablename,$userData,$condition); return $update; } /***************************** Registration ends *****************/ /*************** Query Results starts *************************/ function getQueryResult($query){ $retarray =array(); $db = new DB(); $rows = $db->getSearchResults($query); if(!empty($rows)){ return $rows; } return $retarray; } /*************** Query Results ends *************************/ /*************** IP stars*************************/ function getIP(){ $ipaddress = ''; if ($_SERVER['HTTP_CLIENT_IP']) $ipaddress = $_SERVER['HTTP_CLIENT_IP']; else if($_SERVER['HTTP_X_FORWARDED_FOR']) $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; else if($_SERVER['HTTP_X_FORWARDED']) $ipaddress = $_SERVER['HTTP_X_FORWARDED']; else if($_SERVER['HTTP_FORWARDED_FOR']) $ipaddress = $_SERVER['HTTP_FORWARDED_FOR']; else if($_SERVER['HTTP_FORWARDED']) $ipaddress = $_SERVER['HTTP_FORWARDED']; else if($_SERVER['REMOTE_ADDR']) $ipaddress = $_SERVER['REMOTE_ADDR']; else $ipaddress = 'UNKNOWN'; return $ipaddress; } /*************** IP ends*************************/ /*************** RandomAlpha Gen Functions stars*************************/ function generateRandomAlpha() { $chars = "abcdefghijkmnopqrstuvwxyz023456789"; srand((double)microtime()*1000000); $i = 0; $pass = '' ; while ($i <= 7) { $num = rand() % 33; $tmp = substr($chars, $num, 1); $pass = $pass . $tmp; $i++; } return $pass; } /*************** RandomAlpha Gen Functions stars*************************/ /*************** TimeStamp Functions stars*************************/ function time_stamp($session_time){ $time_difference = time() - $session_time ; $seconds = $time_difference ; $minutes = round($time_difference / 60 ); $hours = round($time_difference / 3600 ); $days = round($time_difference / 86400 ); $weeks = round($time_difference / 604800 ); $months = round($time_difference / 2419200 ); $years = round($time_difference / 29030400 ); // Seconds if($seconds <= 60){ echo "$seconds seconds ago"; } //Minutes else if($minutes <=60){ if($minutes==1){ echo "one minute ago"; }else{ echo "$minutes minutes ago"; } } //Hours else if($hours <=24){ if($hours==1){ echo "one hour ago";}else{ echo "$hours hours ago";} } //Days else if($days <= 7){ if($days==1){ echo "one day ago";}else{ echo "$days days ago";}} //Weeks else if($weeks <= 4){ if($weeks==1){ echo "one week ago";}else{ echo "$weeks weeks ago"; } } //Months else if($months <=12){ if($months==1){ echo "one month ago"; }else{ echo "$months months ago";} } //Years else{ if($years==1){echo "one year ago";}else{echo "$years years ago";}} } /*************** TimeStamp Functions ends*************************/ ?> Hope Wanted
banner

Volunteer


BECOME AN AMBASSADOR OF HOPE

We can't do what we do without YOU. Sign up here to become an Ambassador of Hope!


Nothing compares to the feeling of giving back to your community in a meaningful way. As a volunteer with Hope Wanted, you will serve as an "Ambassador of Hope." Ambassadors are in complete control of how much time they give, as well as exactly who their efforts are benefitting. Our volunteer program offers both "hands-off" and "hands-on" opportunities, so you can help us remotely from your home or at one of our on-site locations. No matter how you choose to help, your service is greatly appreciated! Please complete the form below and we will contact you shortly with more specifics about next steps and how we can best use your talents.


WE WILL NEVER SHARE YOUR INFORMATION WITH ANY OTHER ORGANIZATION.



Volunteer Registration


First Name:

Last Name:

Email:

Phone:

Best time to call:

City:

State:

ZIP:


      Hands-On - I may be available for certain Hands-On (on-site) volunteer duties
      Hands-Off - At this time please only consider me for Hands-Off (remote) services

Volunteer Experience:

Profession:

Please tell us about your general availability:

What social issues are you most passionate about?

Security Code*