PHP interesse |
|
Ik krijg een error in de query.
Het gaat om de laatste regel, maar ik zie niet wat ik fout doe.
$qGetOrder = mysql_query("SELECT order.date AS date,
order.order_id AS oorderid,
contracts.order_id AS corderid
FROM `order`
INNER JOIN contracts
ON order.order_id = contracts.order_id
WHERE order.date = NOW() - INTERVAL '10 DAYS'") or die (mysql_error());
order.order_id AS oorderid, contracts.order_id AS corderid FROM `order` INNER JOIN contracts ON order.order_id = contracts.order_id WHERE order.date = NOW() - INTERVAL '10 DAYS'") or die (mysql_error());
|