I'm still very new to this but is there a way to control content (text and/or image) using PHP and a specific date? For example I need to add "New Store Hours" to a listing of locations for a client website, however I don't want to have to go back into all of the pages and turn them off after a few weeks. Any help or suggestions would be much appreciated.
Marty1963
0
Newbie Poster
Recommended Answers
Jump to PostUSe a DB to store times and locations:
e.g.
stores
store_id (int/3/PK)
store_name (varchar/50)
store_address1 (varchar/100)
store_address1 (varchar/100)
store_address1 (varchar/100)
store_postcode (varchar/8)
store_www (varchar/50)
store_email (varchar/75)
store_tel1 (varchar/16)
active (tinyint/1) - this can decide whether the store is displayed or not
...(etc)...times
store_id (int/3)
date_id (int/3)
…
Jump to PostDOh! MY apologies - sometimes I read what I want to read - and totally get the wrong end of the stick.
Set a $timeoff variable (date for image to be taken off at the top of the page.
Then compare this against the current time. If ok, …
All 5 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.