• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Matching data from 2 table with validation date

#6
@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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.