Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513

Codigo para Limpiar las entradas a MySQL

04 de Sep, 2014


Warning: Illegal string offset 'language' in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 510

Warning: ksort() expects parameter 1 to be array, string given in /homepages/7/d574192756/htdocs/zeidan/wp-content/plugins/igsyntax-hiliter/classes/frontend.php on line 513
Codigo para Limpiar las entradas a MySQL
Rate this post

Función en PHP para limpiar los strings antes de enviarlos a Mysql

  1. function limpiarcampo($dirty){
  2. if (get_magic_quotes_gpc()) {
  3. $liberate = mysql_real_escape_string(stripslashes($dirty));
  4. }else{
  5. $liberate = mysql_real_escape_string($dirty);
  6. }
  7. return $liberate;
  8. }