sueckreimir

konekcijaMVC

Oct 9th, 2019 (edited)
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--
  3. To change this license header, choose License Headers in Project Properties.
  4. To change this template file, choose Tools | Templates
  5. and open the template in the editor.
  6. -->
  7. <html>
  8.     <head>
  9.         <meta charset="UTF-8">
  10.         <title></title>
  11.     </head>
  12.     <body>
  13.         <?php
  14.        
  15.         $host='localhost';
  16.         $user='root';
  17.         $password='';
  18.         $database='fakultet';
  19.         $utf='utf8';
  20.        
  21.         $link= mysqli_connect($host, $user, $password, $database);
  22.         $charset= mysqli_set_charset($link, $utf);
  23.        
  24.         if($link==TRUE and $charset==TRUE)
  25.         {
  26.             echo 'Da';
  27.         }
  28.         else
  29.         {
  30.             echo 'Ne';
  31.             die();
  32.         }
  33.        
  34.         ?>
  35.     </body>
  36. </html>
Add Comment
Please, Sign In to add comment