php - Pagination script - getting data from two tables -
I have an endorsement script which can be seen here:
This is the source code:
(PmcPagination.php)
(page with code in demo.php)
and index.php to use just PHP () The function uses Show demo.php
What I'm trying to do, has been removed from two tables for paging.
This is my current database structure:
Programs varchar (255) channel varchar (255) episode varchar (255) series varchar (255) setreminder varchar ( 255) However, the episodes are stored separately from the table and the episode 167 and the episode table (only in the episode table as episodes, series, episode, and description fields). Want to remove a query? An error I show my pageigan script here:
Show a TV show on the channel 1 August 3 - 12:30 "" Reminder TV Show Show Show Channel 1G Set the "Episode 1" reminder on August 3 - 8:30
And it still remains after the incident.
How it should be Work:
Show a TV Show on Channel 1 August 3 - 12:30 am Channel 1 TV Show Show Channel on August 3 - 2:45 Show Reminder TV Show on August 3 - 8:30 "Episode 1" Set Reminder
Note that when the event is set reminder field is not shown, and if no episode is selected There are no quotation marks.
(setreminder field is basically a link on which a user will click to send a reminder, "TV show 1 April 3 - 8:30 am Episode 1" or "TV show broadcast today 8: 30 episode episode 1 "However, it will not be displayed for the broadcasting show now, it will be displayed like this:
TV show shown on the channel 1 August 3 - 12: 30 noon
$ result = mysql_query ("Choose Program, Channel, AirDate, Termination, Episode, Series, Cerendor FD from Epidata 167 where
Airdate> Airdate by curdate () Group ");
And here is a part of the endorsement code that I used to write a FLAC statement Tried and tried to use, but was not sure what to do:
class endorsement data {private $ program; private $ channel; private $ airdate; private $ Exits; Private $ Episodes; Private $ Series; Personal $ Setterime Fear; Public Function __ Composition ($ program, $ channel, $ airdate, $ end, $ episode, $ set reminder) {$ this- & gt; Program = $ program; $ This- & gt; Channel = $ channel; $ This- & gt; Airdate = Stromathemate ($ airdate); $ This- & gt; End = $ end; $ This- & gt; Episode = $ Episode; $ The- & gt; Setterminder = $ setimemander; } // This function shows the data function display (if (date ('ym-d') == date ('ym-d', $ this-> airdate)) $ dateFormat = 'g: ia' ;; $ DateFormat = 'F js - g: ia'; and $ date format = 'FJS, Y - (date' Y ') == Date (' Y ', $ this- & gt; G: i ''; echo '& lt; tr & gt;'. \ N ". '& Lt; td & gt; & lt; strong & gt;' $ this- & gt; program. '& Lt; / Strong> ''. \ N ". '& Lt; td & gt;' $ the- & gt; Displaying on the channel. '& Lt; / td & gt; ''. \ "\ N". '& Lt; td & gt;' Date ($ dateFormat, $ this-> AirDate). '& Lt; / td & gt;' "\" ". ; Td> & lt; b & gt; ".. $ $$-> Episode. ""
& lt; / td> "\ N". '& Lt; td & gt;' $ the- & gt; Settermasters. '
}
P> Actually, I'm having trouble getting the data in my project: Showing TV Shows 1 August 3 - 12:30 am Channel 1 October 3 - 2:45 pm Channel 1 on TV Show 1 August 3 - 2:45 pm Set reminders TV show on August 3 - 8:30 "Episode 1" series 1, episode 1 set reminder
(This is so If episode is part of a series with a number of series)
Not sure if joining to use and where, all help is appreciated because I try to do it I'm working on page numbering; Just trying to work better!
I am not asking people to do this for me, I am learning myself and have done my research.
Sorry if it sounds a little bit, but I hope I explained it.
Thank you.
You have to use the union to act on it.
Comments
Post a Comment