The PHP part of my code isn’t working. It’s should do a login check, but when the code reaches this part, a white screen appears. The same thing happens with the registration page page (Cadastrar).
Thanks! I follow the instructions and it came back:
Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php:8 Stack trace: #0 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php(8): mysqli->__construct(‘Localhost’, ‘root’, Object(SensitiveParameterValue), ‘cadastro_acervo’) #1 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/testeLogin.php(8): include_once(‘/home/vol18_2/i…’) #2 {main} thrown in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php on line 8
You still use “localhost” as your server and “root” as your username. Go to the Client Area, copy the MySQL server and the username, and change your code.
Did you also copy and change the password in your code, or did you leave it blank? Because if it was an incorrect password it should say “using password: YES”. Check your code again.
Did you make sure the variable that contains the password is updated properly on your variable that initialises an object of type mysqli as well, also checking line 8?
You might also need to close the File Manager tab, reopen the File Manager and go to the file you were modifying earlier if it doesn’t work first try because it disconnected before.
Did you make sure you used your hosting account password as your database password and not the Client Area password, as those two passwords are different? If you used the Client Area password here are the steps to get the hosting account password:
Also, make sure you don’t have any spaces or any other invisible character before or after the password.
So, after the previous problem, I now have another one: A multiple database entry. Basically, when I make a registration, 4 identically registers are made.