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 7835737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:46:46+00:00 2026-06-02T13:46:46+00:00

i make a php program this programe show Schedules of channels in the page

  • 0

i make a php program

this programe show Schedules of channels

in the page of the channel i want to display the current program and the next one ,

in the table of the Schedules i insert the time of the program in cell called ” when ”

select when from Schedules where channel_id = 13

this is will display the time of all the programms in timestamp

i wanna to output only the current program , and the next one only


sorry for bad english language

  • 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-02T13:46:48+00:00Added an answer on June 2, 2026 at 1:46 pm

    I don’t have something to test this against, however this query will get all schedules for channel id 13 that are scheduled after or at $time, we order all such results in asc order by when and finally choose first two out of them (which will be the program at $time and the next after this one)

    SELECT field1,field2,when FROM Schedules where channel_id = 13 AND 
    when >= $time ORDER BY when ASC LIMIT 2
    

    Fill in for field1, field2, and $time variable as required.

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

Sidebar

Related Questions

I make this php program to access mysql data foreach ($arrayOfID as $ID) {
I want to make my php page only accessible from another page redirect and
I have a program that will make a web request to a php page
i would like to learn how to make PHP/CSS syntax generator. i assume this
i want to make a php app that let people submit photos/videos/sounds Now, everything
I would like to make a php script that can capture a page from
I want to make a program that pulls objects from a sql database and
since eregi replace was deprecated on version 5.3 i want to make my program
I want to make a simple assistant for putting together AviSynth scripts. This would
I'm using this program called MMlogic. I want to simulate a traffic light. Counter

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.