mr.echo Posted December 21, 2008 Share Posted December 21, 2008 hi fellas, i have a project for school,i have to build an airline website and i m just a rookie in php. i have a problem about flights.see i want to choose my flights in calendar as you know but i don't know how can i connect this flights using db. for example we have a flight every monday la to vegas at 8 pm. so i ll put locations and clock to db,but how can i use this commons again and again and again. and i know this project is hard for me but i have to do this,it can't be a pro website but i should sell a ticket at least thanks for your helps Quote Link to comment https://forums.phpfreaks.com/topic/137943-auto-update-db/ Share on other sites More sharing options...
LemonInflux Posted December 21, 2008 Share Posted December 21, 2008 If I understand you, you want to add something to show up every monday in the calendar? Have you considered putting it in every monday? If that doesn't solve your problem, just update the MySQL timestamp. UPDATE `table` SET 'timestamp_field' = 'nextMondayTime'. Quote Link to comment https://forums.phpfreaks.com/topic/137943-auto-update-db/#findComment-721004 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.