Welcome Guest, Not a member yet? Register   Sign In
AR get row if null
#1

[eluser]JanDoToDo[/eluser]
hi guys,

i want to do this query: can someone correct it so that i can use IFNULL?

Thanks!

Code:
$this -> db -> get_where($this -> config -> item('messages_tbl'), array('recipient_id' => $id, 'date_read' => NULL))
#2

[eluser]JanDoToDo[/eluser]
Ok.. so i did that as it writes the query ok. What if wanted it so that it wasnt null?




Theme © iAndrew 2016 - Forum software by © MyBB