Welcome Guest, Not a member yet? Register   Sign In
Small Question
#6

[eluser]robertGM[/eluser]
Thanks for the input ... i have one more question related to a query.
How can add one more where to the subselection .. I need something like :

From : $sql='SELECT * FROM clienti WHERE id IN (SELECT DISTINCT `firma` FROM `program_saptamanal` WHERE firma != \\'\')';
to
$sql='SELECT * FROM clienti WHERE id IN (SELECT DISTINCT `firma` FROM `program_saptamanal` WHERE firma != \\'\')'; and where('agent_id', $user->id);

agent_id - is from program_saptamanal table

I want the users to select only there records not all the records ..


Thanks for the support.


Messages In This Thread
Small Question - by El Forum - 10-09-2013, 05:55 AM
Small Question - by El Forum - 10-09-2013, 09:25 AM
Small Question - by El Forum - 10-09-2013, 10:32 PM
Small Question - by El Forum - 10-11-2013, 05:51 AM
Small Question - by El Forum - 10-11-2013, 09:03 AM
Small Question - by El Forum - 10-13-2013, 10:56 PM
Small Question - by El Forum - 10-14-2013, 12:40 AM
Small Question - by El Forum - 10-14-2013, 03:38 AM
Small Question - by El Forum - 10-14-2013, 05:20 AM
Small Question - by El Forum - 10-15-2013, 07:12 AM
Small Question - by El Forum - 10-15-2013, 10:39 PM
Small Question - by El Forum - 10-16-2013, 12:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB