• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with JOIN query

#1
[eluser]jvk22[/eluser]
I need to make a join query, but I'm not 100% certain how.

Two Tables: offer, downloads

I need to select all rows in the offer table based on the rules below

offer.id != downloads.offer_id
downloads.status != 1
downloads.ip = $this->input->ip_address()
offer.country = $users_country


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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