Skip to main content

My Escape Data Function

My Escape Data Function

Quick and handy function to purify data before entering into the database

function escape_data($data){
   $data = mysql_escape_string(trim($data));
   $data = htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
   return = $data;
}
Main Category
  • PHP
  •  
Secondary Categories
  • Handy Functions
  •  
 
Jon Moore

Search form

Jon Moore

Tips 'n' Snips

 
  • Home
  • General
  • Drupal
    • Drupal 6
    • Drupal 7
    • Module Building
  • HTML & CSS
  • Javascript
  • jQuery
  • PHP
    • Handy Functions
    • MySQL
  • WordPress
  • About
  • Contact

BBC Technology News

  • Bercow's McAlpine tweet libellous
  • VIDEO: Xbox One 'is still a gaming console'
  • Second RBS apology for app glitch
  • BBC abandons £100m digital project
  • Faltering Facebook phone is delayed
More

Sitepoint

  • How to Use Your Own Web Statistics at caniuse.com
  • Test Your Web Copy: the Why, When and How
  • A Checklist for Embracing BYOD in IT Policy
  • What Happened During Live CSS Help with the Experts
  • What’s New in Chrome 27
More

Heart Internet

  • Link Friday Week 12
  • The new features added to your Reseller Pro this year (so far…)
  • Resellers: New eXtend Message Centre launched
  • Resellers: New 14 day free trial feature added to SiteDesigner
  • New apprentice scheme at Heart Internet
More
 

Backend Coders

  • PHP
  • Handy PHP Functions
  • PHP MySQL

Frontend Coders

  • HTML & CSS
  • jQuery
  • Javascript

CMS/CMF Systems

  • Drupal
  • Drupal 6 Specific
  • Drupal 7 Specific
  • Drupal Module Building
  • WordPress

About

  • Home
  • About
  • Contact
 

© Jon Moore 2013