Verificar existencia de tabla Mysql
Posted on April 6th, 2007 in Código, Php |
Esta función te permita comprobar la existencia de una tabla de Mysql
PHP:
-
<?php
-
-
//nota: ya debe de tener una xconexion mysql existente
-
-
function table_exists ($table, $db) {
-
if ($temp == $table) {
-
return TRUE;
-
}
-
}
-
return FALSE;
-
}
-
-
-
if (table_exists("Tabla", "Database")) {
-
echo "Si exste.";
-
}
-
?>
Popularidad: 16%

