Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @Função: Deletar DataBase em MySQL
- @Créditos: SuYaNw Dácio
- http://suyanwdacio.blogspot.com/
- */
- // Deletar DataBase, CreateDataBaseInMySql("Ip hosting","Usuário","Senha","DataBase Nome");
- // return 1, verdadeiro se foi deletado com sucesso, returne false se não existe este db, caso der erro,
- // returna ao erro mysql.
- function DeleteDataBaseInMySql($host, $user, $pas, $db)
- {
- $c = mysql_connect($host, $user, $pas);
- $crate = "DROP DATABASE ".$db."";
- if(mysql_query($crate, $c))
- {
- return 1;
- }
- else
- {
- return 0;
- }
- return mysql_error();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement