Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7944717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:38:09+00:00 2026-06-04T00:38:09+00:00

In teaching myself php and mySQL a year or two ago, I created a

  • 0

In teaching myself php and mySQL a year or two ago, I created a movie database for the theater I work at, to help automate the more mundane web updates that need to be done weekly. So far this only pertains to film information (title, ratings, synopsis, start date) – but does not include showtimes, but lately I’ve thought it might be fun to see if it’s possible to build on this aspect of the site.

My initial idea was to build a table that displayed showtimes via date groups (ie 5/15 – 5/20), but it was suggested that submitting times for individual days would probably be more useful from a user perspective (ie the showtimes for 5/15 are…), especially since there are occasionally changes and cancellations throughout the week due to special events.

Problem I’m having even starting this – is how to submit more than one date at once. Would it be possible, in the form, to have a ‘start date‘ and ‘end date‘ and have the single form submit all the times input on those two dates and all the dates inbetween?

From a back-end perspective submitting the same 4 or 5 showtimes every day, 7 days a week for 10 to 14 films a week is more work for US than just putting the times in manually in dreamweaver – so I’m just trying to figure out how to make the process easier for us behind the scenes. If we could batch insert a set of showtimes, then we could go back through and edit the individual days that have special/cancelled times (which would probably mean building in a ‘draft, live, hidden’ system – but I’ve got at least a basic knowledge of how to go about that.

I’ve got a very basic table set up for showtimes with (user end example of what I’m aiming for here):

  • MOVIE_ID (links with the movie info database to pull in film info – title, runtime, etc)
  • sched_date (uses datetime to set a specific showtime on a specific date)

I guess I might have to abandon using datetime if there’s any way to do this?

Any help would be hot! Much thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:38:11+00:00Added an answer on June 4, 2026 at 12:38 am

    You can have 2 date fields with names from_date and end_date in your PHP form. In your PHP form submit code you then need to use the DateTime class and start from from_date and use the DateTime::add method to loop till end_date is reached. Please note you need to first convert the 2 dates i.e. from_date and end_date to datetime using either new DateTime(‘YYYY-MM-DD’) or using DateTime::createFromFormat.

    In the loop simply send insert commands to MySQL to insert the rows to your DB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Teaching myself the flow of data from mySQL -> PHP -> JSON / Javascript
not sure why my code wont work, im teaching myself javascript i know php
Over the last 18 months i have been hard at work teaching myself PHP
I am in the very beginnings of teaching myself php. I am giving myself
I hope you are all well. I am currently teaching myself PHP and as
So I'm teaching myself Ruby on Rails, with a PHP background. I've written a
I am familiar with Java and at the moment I am teaching myself PHP.
I'm teaching myself JavaScript and PHP by building an app, and I decided I
I am self teaching myself some python OOP, and I have created a simple
I am teaching myself web development, and right now I'm using HTML/CSS/PHP, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.