· 8 years ago · Dec 11, 2017, 11:30 AM
1<!DOCTYPE html>
2<html lang="pl-PL">
3<head>
4<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
5 <link rel="stylesheet" type="text/css" href="style.css">
6<title>Projektowanie Aplikacji Internetowych- ADMINISTRACJA </title>
7</head>
8<body>
9 <div >
10 <p class="header" col="red">Portal</p>
11 </div>
12
13<!-- <div
14 <ul class="ul-top top-nav">
15 <li class="top-nav"><a class="a-universal" href="index.php">Strona główna</a></li>
16 <li class="top-nav"><a class="a-universal" href="ankieta.php">Ankieta</a></li>
17 <li class="top-nav" case="upper"><a class="a-universal" href="">Kontakt</a></li>
18 <li class="top-nav" case="lower"><a class="a-universal" href="">ADMINISTRACJA</a></li>
19 </ul>
20 </div>-->
21 <?php
22 include "dbconf.php";
23 $id_conn = mysql_connect($host, $user, $haslo);
24 mysql_select_db($baza);
25 if($id_conn == false) die( 'BÅÄ„D dostÄ™pu do danych!');
26 $sqlQuery= " create table if not exists website(
27 id integer primary key auto_increment,
28 title varchar(25) unique,
29 header varchar(30),
30 data varchar(20000)
31 )";
32
33 if(mysql_query($sqlQuery)){
34 echo "Stworzono tabelÄ™ website!";
35 echo '<a href = "admin.php"> Powrót </a>';}
36 else
37 echo 'Wystąpił błąd! Przepraszamy!';
38 $sqlQuery= " create table if not exists clients(
39id integer primary key auto_increment,
40username varchar(45) unique,
41password varchar(64)
42)";
43
44 if(mysql_query($sqlQuery)){
45 echo "Stworzono tabelÄ™ client!";
46 echo '<a href = "admin.php"> Powrót </a>';}
47 else
48 echo 'Wystąpił błąd! Przepraszamy!';
49
50
51echo '</body>
52</html>';