Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Музыкальные композиции</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- </head>
- <body>
- <table>
- <tr>
- <td>
- <a href="index.php?form=compositions">Композиции</a><br/>
- <a href="index.php?form=adding">Добавление</a><br/>
- <a href="index.php?form=search">Поиск</a><br/>
- <a href="index.php?form=statistic">Статистика</a><br/>
- <a href="index.php?form=info">Информация</a><br/><br/>
- </td>
- <td>
- <?
- $hostname = "localhost";
- $username = "root";
- $password = "mynewpassword";
- $dbName = "music";
- $userstable = "composition";
- /*$query = "INSERT INTO `bd3`.`lang` (`id`, `name`, `shortName`) VALUES ('1', 'йцу', 'фыв');";
- $res = mysql_query($query) or die(mysql_error()); */
- mysql_connect($hostname,$username,$password) OR DIE("Не могу создать соединение ");
- mysql_select_db($dbName);
- switch ($_GET['form']) {
- case "compositions":
- include("compositions.php");
- break;
- default:
- include("compositions.php");
- break;
- }
- ?>
- </td>
- </tr>
- </table>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement