nathan1 Posted May 10, 2008 Share Posted May 10, 2008 Hi guys, would appreciate some help with a little problem i have... had this problem for quite a while and am no closer to finding the solution. Ok i have a table of orders, and i also have a table of permanent orders. I have the permanent orders with a day (monday tue etc) i want to insert the permanent orders into the orders table if its the right day. Is there a easy way to do this? Thankyou for any help Link to comment https://forums.phpfreaks.com/topic/105028-php-help/ Share on other sites More sharing options...
npsari Posted May 10, 2008 Share Posted May 10, 2008 You first check the date of the day using the php Date function $Date = date("Y/m/d"); Then, you compare it to the date which you have stored If ($Date == $stored_date){ Insert into database }else{ print"not"; } I think that is what i understand you are after Link to comment https://forums.phpfreaks.com/topic/105028-php-help/#findComment-537611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.