Welcome Guest, Not a member yet? Register   Sign In
num_rows() problem
#11

[eluser]Cristian Gilè[/eluser]
[quote author="InsiteFX" date="1296127109"]It returned 1 for the row because it did find the row in the database.

InsiteFX[/quote]

It's not right! A session var that is not set or is set as empty like this:

Code:
$this->session->set_userdata('username',"");

doesn't exist, so the statement
Code:
if($this->session->userdata('username') == "")

returns TRUE.


Cristian Gilè


Messages In This Thread
num_rows() problem - by El Forum - 01-26-2011, 06:59 PM
num_rows() problem - by El Forum - 01-26-2011, 07:26 PM
num_rows() problem - by El Forum - 01-26-2011, 07:39 PM
num_rows() problem - by El Forum - 01-26-2011, 07:59 PM
num_rows() problem - by El Forum - 01-26-2011, 08:04 PM
num_rows() problem - by El Forum - 01-26-2011, 08:23 PM
num_rows() problem - by El Forum - 01-26-2011, 08:30 PM
num_rows() problem - by El Forum - 01-26-2011, 08:51 PM
num_rows() problem - by El Forum - 01-26-2011, 09:23 PM
num_rows() problem - by El Forum - 01-26-2011, 11:18 PM
num_rows() problem - by El Forum - 01-27-2011, 12:45 AM
num_rows() problem - by El Forum - 01-27-2011, 01:23 AM
num_rows() problem - by El Forum - 01-27-2011, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB