I am running the following SQL query...
$user = 'salesrep_83';
SELECT COUNT(*) AS COUNT
FROM my_table_1 a
JOIN my_table_2 b
ON b.id = a.sale_id
WHERE a.value = '$user'
AND b.date_posted LIKE '05-05-2014'
This works correctly and shows me all of the sales for the specified $user for todays date. I would like to change this so that it shows me all of the sales for todays date from all sales reps. I can generate and array with all of the users IDs but am unsure how to insert this into the query
Anyone has an example?
a.value = '$user' AND...