Site only works locally, does not work online

1

I have a simple connection that my application uses to connect to the mysql database.

Locally everything was fine, but putting online does not work anymore. I already changed several possible terms for the error I saw here in the topic and it did not work. The connection to the bank is correct, but the login verification will not.

Follow my code:

Connection.php

Login.php

Error

  

connection_ok Warning: mysqli_num_rows () expects parameter 1 to be   mysqli_result, boolean given in   /customers/0/f/7/theydo.com.br/httpd.www/bd/Logar.php on line 9   Login_erro

NOTE: I have already tried mysql_num_rows , even though it did not work.

    
asked by anonymous 20.01.2018 / 21:49

1 answer

0

I recently had a problem with a hostgator hosting. I had to create a php.ini file and activate the extension at hand. It tries to analyze if the mysqli dll is activated in the php of your server. I hope this helps you brother.

    
21.01.2018 / 04:27