This works on my Linux server but not on my Windows server:
DB::query("DELETE FROM FeatureAuthorScheduleItem WHERE `Date` < '".date('Y-m-d')."'");
This works on my Windows server but not on my Linux server:
DB::query("DELETE FROM featuredauthorscheduleitem WHERE `Date` < '".date('Y-m-d')."'");
How can I make this work on both servers? Is there a way to catch the error and try the second way if the first way fails?