# Login Page doesn't Work

**URL:** <https://forum.infinityfree.com/t/login-page-doesnt-work/30672>\
**Category:** Hosting Support\
**Created:** [May 26, 2020, 7:30pm UTC](https://forum.infinityfree.com/t/login-page-doesnt-work/30672 "2020-05-26T19:30:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon87282829](https://forum.infinityfree.com/letter_avatar/anon87282829/32/6_449c533f586939b6e5f246632a46421f.png) [@anon87282829](https://forum.infinityfree.com/u/anon87282829)\
**Post date:** [May 26, 2020, 7:30pm UTC](https://forum.infinityfree.com/t/login-page-doesnt-work/30672/1 "2020-05-26T19:30:26Z")

</div>

Fiz meu site, estou testando no hospedeiro gratuito, porém ao usuario tentar o login, as funções não executam, fica apenas uma pagina em branco. O PHP não redireciona para a pagina na qual deve-se ser redirecionada ao conseguir logar. Alguém pode me ajudar por favor.

---

<div class="post-metadata">

**Author:** ![Steve2854](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/steve2854/32/5542_2.png) [@Steve2854](https://forum.infinityfree.com/u/Steve2854)\
**Post date:** [May 27, 2020, 1:21am UTC](https://forum.infinityfree.com/t/login-page-doesnt-work/30672/2 "2020-05-27T01:21:40Z")

</div>

Welcome @anon87282829 🙂 This forum is english based, please post in english. You can use google translator to convert your post to english then paste it in the forum [https://translate.google.com/?hl=en&tab=TT&authuser=0](https://translate.google.com/?hl=en&tab=TT&authuser=0)

Could you edit your post and add the DNS/Domain/URL of your site.

I used google translator portuguese to english, see your post below.

> I made my website, I am testing it on the free host, but when the user tries to login, the functions do not execute, it is just a blank page. PHP does not redirect to the page to be redirected when logging in. Can someone help me please.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [May 27, 2020, 9:23am UTC](https://forum.infinityfree.com/t/login-page-doesnt-work/30672/3 "2020-05-27T09:23:43Z")

</div>

Can you please check your browser’s developer toolbar, select the Network tab and then refresh the page? If the request says status 500, it means your code has crashed (a common reason for these blank pages).

If that’s the case, then please see this article for more information:

> **[Http error 500](https://forum.infinityfree.com/docs?topic=49352)**
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has...

---

<div class="post-metadata">

**Author:** ![JohnLpool](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/johnlpool/32/7024_2.png) [@JohnLpool](https://forum.infinityfree.com/u/JohnLpool)\
**Post date:** [May 27, 2020, 2:30pm UTC](https://forum.infinityfree.com/t/login-page-doesnt-work/30672/4 "2020-05-27T14:30:10Z")

</div>

Is it from the login form or from selecting the login page, either can freeze if a msqli is called and no exception has been set up, I recommend set a page up like test.php use the followinnng code to test it will also print out all columns in that database.

```auto
<?php
$servername = "@sqlxxx.epizy.com";// set server name
$username = "epiz_xxxxxxxx";//set your user name
$password = "password";// set you password
$dbname = "epiz_xxxxxxxx_database";// set your database name
$tbname = "tablename";//set to any table in your database

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
   
}

// Query to get columns from table, set your table name possibly users?
$query = $conn->query("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '" . $dbname . "' AND TABLE_NAME = '" . $tbname . "'" );

while($row = $query->fetch_assoc()){
    $result[] = $row;
	
}

// Array of all column names
$columnArr = array_column($result, 'COLUMN_NAME');
$i = 0;
$num_rows = count($columnArr);
while($i < $num_rows){
	echo $i . ". " . $columnArr[$i] . "<br />";
	
	$i++;
}

?>
```

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [June 11, 2020, 2:30pm UTC](https://forum.infinityfree.com/t/login-page-doesnt-work/30672/5 "2020-06-11T14:30:15Z")

</div>

Closed on June 11, 2020, 2:30pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
