home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>Creating a database</TITLE>
- </HEAD>
- <BODY>
-
- <?php
-
- $DBName="chooseanamedb";
-
- $mysql_link=mysql_connect("localhost","username","password");
-
- if (mysql_create_db ($DBName, $mysql_link)) {
- print ("The database was successfully created!<BR>\n");
- } else {
- print ("Sorry but the database could not be created<BR>\n");
- }
-
- mysql_close ($mysql_link);
-
- ?>
-
- </BODY>
- </HTML>
-
-