No, actually, as said above - you're using the same table so no need to do that.
Without knowing the rest of your codings,
try this one instead:
That's all you'd need to do really . . .PHP Code:SELECT customers_id, date_purchased, order_total
FROM zen_orders
WHERE customers_id = ".(int)$_SESSION['customer_id']." AND date_purchased <> "2006-07-01 00:00:00" AND date_purchased < "2006-08-01 00:00:00"
ORDER BY date_purchased DESC
";
As for selecting your order_total field, I don't know why it has been selected if you have no intentions of using it under any conditions (unless it is being used below the block you have posted from your personal project file). If not, you can delete it from the SQL Select statement to free up a little bit more SQL server ressources.![]()



