![]() |
|
#1
|
|||
|
|||
MySQL query: need suggestionsHi:
3 table below: 1.schedules
2.resources 3.reservations each "scheduletitle" has a one "scheduleid" each "scheduleid" may have more then 10 "machid" each "machid" may has booked, record in "reservations" now i want to print one of scheduletitle, find the match in the "schedules.scheduleid", and after that need to match "schedules.scheduleid" and "resources.scheduleid", get all the "resources.machid" belong to the "schedules.scheduleid" and print out. and i need to look up on the booking table "reservations", did any booking on the each "resouces.machid", if has booking, need to print out the "start_date" and "end_date" and "summary" with the "machid". PHP Code:
i write code, this did print all the "resources.machid", only print the "reservations.machid". but i need print all of them, even no booking. can any please help me!! Last edited by admin : 19-Jan-2009 at 21:23.
Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
|
|||
|
#2
|
||||
|
||||
Re: need help!!I don't quite understand what you are looking for but I will suggest the following query:
Code:
|
|
#3
|
|||
|
|||
Re: MySQL query: need suggestionsthanks for help!!
i got the result work like that: PHP Code:
And one more thing: PHP Code:
end_date if < 1194786000, i don't want echo on the table. seen work, but also display error message as well. Last edited by LuciWiz : 20-Jan-2009 at 02:10.
Reason: Please insert your Php code between [php] & [/php] tags
|
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The