So i have product type forklift, when adding a new product, adds a ton of extra fields to a table using products_id = forklift_id,
I did it a few years ago and its working great, now they are adding a new forklift notification system, (its own little nightmare in another post),
I am setting up listeners that when a new forklift is added, if someone signed up for notifications fitting the specs of the forklift.
I am also setting up a manual notification system and on page load, i want to see which forklifts have been added.
Even pasting into the mysql backend:PHP Code:
$sel_forklifts = "select pf.forklift_id, pf.forklift_cpac, pf.forklift_fuel, pf.forklift_tires, pf.forklift_make, pd.products_id from "
.TABLE_FORKLIFT. " pf" .
" INNER JOIN " .TABLE_PRODUCTS. " pd".
" ON pf.forklift_id = pd.products_id ".
" where pd.products_date_added between '".$tdate."' and '".$edit_time."'";
SELECT pf.forklift_id, pf.forklift_cpac, pf.forklift_fuel, pf.forklift_tires, pf.forklift_make, pd.products_id
FROM zen_forklift pf
INNER JOIN zen_products pd ON pf.forklift_id = pd.products_id
WHERE pd.products_date_added
BETWEEN '2016-07-04'
AND '2016-07-14'
LIMIT 0 , 30
No results
Seems to not return any hits, even though i know there are at least 6 that should come up.
Can anyone give me a little guidance, im not the best with joins.
Thanks a ton.
Jeff
Bookmarks