no entiendo si el error es con la conexion o con la funcion que devuelve los registro, el problema es que no puedo recuperar ningun registro, la pagina aparece vacia despues de presionar el submit
code text here
<head>
<style>
body{background-color:darkorange;}
</style>
</head>
<form method="post" action="main.php" target="_self">
<input type="text" name="txt" placeholder="txt">
<input type="submit" name="submit">
</form>
<?php
//login-db.php
$db_host ="localhost";
$db_username = "root";
$db_pw = " ";
$db_name = "db";
$conn = mysqli_connect($db_host, $db_username, $db_pw, $db_name);
?>
<head>
<style>
body{background-color:darkorange;}
</style>
</head>
<?php
//include("form.html");
//include("login-db.php");
if(isset($_GET['submit'])){
/*
session_start();
$_SESSION['user1'] = $_GET['txt'];
echo $_SESSION['user1'];
*/
include("login-db.php");
$sql = "select * from users";
$result = mysqli_query($conn, $sql);
$fila = mysqli_fetch_row($result);
echo $fila[0];
}
?>