Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @Função: Criar DataBase em MySQL
- @Créditos: SuYaNw Dácio
- http://suyanwdacio.blogspot.com/
- */
- function CreateDataBaseInMySql($host, $user, $pas, $db)
- {
- $c = mysql_connect($host, $user, $pas);
- $crate = "CREATE 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