Welcome Guest, Not a member yet? Register   Sign In
Not Connecting to Database
#3

(05-14-2019, 06:34 PM)php_rocs Wrote: @Mekaboo,

Is your database configurations correct in the database config file?

Yep its correct, I contacted webhost to make sure. I chose test some different code for login and now I get this error. Ive gotten this before:

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home4/cultured/public_html/application/controllers/Login.php:25)
Filename: core/Common.php
Line Number: 564
Backtrace:
A PHP Error was encountered
Severity: Error
Message: Call to a member function row() on a non-object
Filename: controllers/Login.php
Line Number: 25
Backtrace:

However I got it for this line of code:
$user = $this->db->get_where('user',['email' => $email])->row();

My rows within my DB are:username, email, password.

Trying to understand what I need to change in this line to make it work properly. Thank you for the help Blush
Reply


Messages In This Thread
Not Connecting to Database - by Mekaboo - 05-14-2019, 02:16 PM
RE: Not Connecting to Database - by php_rocs - 05-14-2019, 06:34 PM
RE: Not Connecting to Database - by Mekaboo - 05-14-2019, 08:59 PM
RE: Not Connecting to Database - by InsiteFX - 05-15-2019, 08:34 AM
RE: Not Connecting to Database - by php_rocs - 05-15-2019, 09:29 AM
RE: Not Connecting to Database - by Mekaboo - 05-15-2019, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB