Skip to content
Snippets Groups Projects
Commit aa041b35 authored by fajarnugroho's avatar fajarnugroho
Browse files

add config.php

parent 1dbf7af9
Branches
No related merge requests found
<?php
define('DB-SERVER', 'localhost');
define('DB_USERNAME', 'pr-ojek');
define('DB_PASSWORD', 'pr-ojek');
define('DB_NAME', 'projek');
?>
...@@ -30,3 +30,19 @@ ...@@ -30,3 +30,19 @@
</div> </div>
</body> </body>
</html> </html>
<?php
include 'config.php';
$dbserver = "localhost";
$dbuser = "pr-ojek";
$dbpass = "pr-ojek";
$username = $_POST['username'];
$password = $_POST['password'];
$sqlconn = new mysqli($dbserver, $dbuser, $dbpass);
if ($sqlconn->connect_error) {
die('mySQL connection failed');
}
if ()
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment