Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <form >
- </form>
- <?php
- $dbase = 'DB-Iskola';
- $sql="CREATE DATABASE $dbase"
- ."CHARACTER SET utf8"
- ."COLLATE utf8_hungarian_ci;";
- $server ='localhost';
- $user ='root';
- $password ='Demo1234';
- $table ='Tanulók';
- if(!$sql)
- {
- die('Kapcsolódási hiba');
- }
- else
- {
- echo('Sikeres kapcsolódás!');
- }
- $sql2= "CREATE TABLE IF NOT EXISTS $table("
- ."Vnev VARCHAR(20),"
- ."Knev VARCHAR(20),"
- ."Irsz INT(4),"
- ."Helység VARCHAR(20),"
- ."Cím VARHCAR(30),"
- ."Szülhely VARCHAR(30),"
- ."Szülidő DATE,"
- ."Szigszám VARCHAR(20));";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement