File "funciones.php"

Full path: /home/dsvchile/public_html/equote/Buscadores/funciones.php
File size: 435 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php
function sql_quote( $value )
{
    if( get_magic_quotes_gpc() )
    {
          $value = stripslashes( $value );
    }
    //check if this function exists 
    if( function_exists( "mysql_real_escape_string" ) )
    {
          $value = mysql_real_escape_string( $value );
    }
    //for PHP version < 4.3.0 use addslashes 
    else
    {
          $value = addslashes( $value );
    }
    return $value;
}
?>