Skip to content

Commit

Permalink
Corrigiendo funciones
Browse files Browse the repository at this point in the history
actualizando algo trol
  • Loading branch information
Javier Gomez committed Jun 12, 2012
1 parent 744ecc0 commit a0267ea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions face/sql_util.php
@@ -1,20 +1,27 @@
<?php
class sql{
function sql(){

function __construct(){

}

function filtrar($str){

if (!isset($GLOBALS["carateres_latinos"])){
$todas = get_html_translation_table(HTML_ENTITIES, ENT_NOQUOTES);
$etiquetas = get_html_translation_table(HTML_SPECIALCHARS, ENT_NOQUOTES);
$GLOBALS["carateres_latinos"] = array_diff($todas, $etiquetas);
}
$str = strtr($str, $GLOBALS["carateres_latinos"]);
return $str;

}

function conectar($host,$user,$pass){
$link=mysqli_connect($host,$user,$pass) or die ("<h1 style='margin:10px'>Oops, Error conectando con SQL estamos trabajando pronto lo solucionaremos...</h1></div>");

$link=mysqli_connect($host,$user,$pass) or die ("error no se pudo conectar");
return $link;

}

function sdb($db,$con){
Expand Down

0 comments on commit a0267ea

Please sign in to comment.