Welcome Guest, Not a member yet? Register   Sign In
Matching data from 2 table with validation date
#6

(This post was last modified: 02-08-2019, 08:50 AM by php_rocs.)

@DELE,

I prefer to use the query bindings feature ( https://www.codeigniter.com/userguide3/d...y-bindings ).   This gives me more flexibility to write my own queries and the binding feature automatically escapes the variables for me.  So my code would look like...

PHP Code:
$sql "select ucj.id
from users_campaigns_join_view ucj
inner join incomes i on i.id = ucj.id
where i.date = ?"
;

$this->db->query($sql, ['2018-10-10']); 
Reply


Messages In This Thread
RE: Matching data from 2 table with validation date - by php_rocs - 02-08-2019, 08:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB