You are on page 1of 2

############### codigo php reutiliazable ################

<?php echo $_SESSION['usr'] ? $_SESSION['usr'] : '...';?>


#######################################################################
// Controlamos si se produce un error SQL
if (mysql_error() != ''){
echo "Se ha producido el error ".mysql_errno()." ".mysql_error();
}
#######################################################################
<?php
echo $a;
// devuelve un array asociativo con el tipo, mensaje, archivo y lnea donde se pro
duce un error
echo error_get_last();
?>
#######################################################################
if(isset($_POST["grabar"]) and $_POST["grabar"] == "si"){
<input type="hidden" name="grabar" value="si" />
#######################################################################
# VARIABLE DE INICIO
$_SESSION["id"] = $reg["id_us"];
# PARA SALIR
session_start();
session_unregister("id");
session_destroy();
#######################################################################
if (version_compare(phpversion(), "5.3.0", ">=") == 1)
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
else
error_reporting(E_ALL & ~E_NOTICE);
#######################################################################

otros
Intelligent PHP autocomplete

url
http://tecnoloxiaxa.blogspot.com/2009/01/manual-de-php.html
- php
http://www.masquewordpress.com/dbphp-como-definir-los-parametros-de-conexion-detu-base-de-datos/
http://www.catchmyfame.com/paginator/example.2.php?page=11&ipp=25
http://www.masquewordpress.com/paginacion-php-con-clase/
http://www.masquewordpress.com/plugin-jquery-para-limitar-caracteres-en-un-campo
-de-texto/

http://tutorialzine.com/2010/06/simple-ajax-commenting-system/
DEBATE
http://intensedebate.com/signup
http://www.masquewordpress.com/plugin-jquery-para-limitar-caracteres-en-un-campo
-de-texto/
http://demos.ciber-adictos.com/
http://www.frequency-decoder.com/

You might also like