Click here to Skip to main content
15,902,299 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: php - include_once Pin
PHP_Guy19-Mar-10 7:51
PHP_Guy19-Mar-10 7:51 
QuestionOrganize mysql results in html table with PHP Pin
pelikan20026-Mar-10 14:15
pelikan20026-Mar-10 14:15 
AnswerRe: Organize mysql results in html table with PHP Pin
Luc Pattyn6-Mar-10 14:38
sitebuilderLuc Pattyn6-Mar-10 14:38 
GeneralRe: Organize mysql results in html table with PHP Pin
pelikan20027-Mar-10 0:53
pelikan20027-Mar-10 0:53 
GeneralRe: Organize mysql results in html table with PHP Pin
pelikan20027-Mar-10 5:22
pelikan20027-Mar-10 5:22 
GeneralRe: Organize mysql results in html table with PHP Pin
Luc Pattyn7-Mar-10 8:45
sitebuilderLuc Pattyn7-Mar-10 8:45 
GeneralRe: Organize mysql results in html table with PHP Pin
pelikan200211-Mar-10 5:05
pelikan200211-Mar-10 5:05 
GeneralRe: Organize mysql results in html table with PHP Pin
Luc Pattyn11-Mar-10 5:13
sitebuilderLuc Pattyn11-Mar-10 5:13 
I'm not going to give PHP code; what follows is pseudo-code to create one HTML table row between firstHour and lastHour:
0. create an empty array representing the relevant hours (or quarters or whatever time unit you choose) for one day.
1. run your SQL query for that day
2. foreach result from SQL query mark the hour(s) in the array
3. now generate HTML code for one row of your HTML table, starting with TR tag
4. foreach hour between firstHour and lastHour look in your array and create either an empty table cell, or a filled table cell using TD tag, P tag, etc.
5. close table row with /TR tag


Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Organize mysql results in html table with PHP Pin
pelikan200211-Mar-10 5:19
pelikan200211-Mar-10 5:19 
AnswerRe: Organize mysql results in html table with PHP Pin
PHP_Guy19-Mar-10 7:32
PHP_Guy19-Mar-10 7:32 
QuestionInteger conversion for dummies Pin
Jack Vanderhorst6-Mar-10 4:14
Jack Vanderhorst6-Mar-10 4:14 
AnswerRe: Integer conversion for dummies Pin
Jack Vanderhorst6-Mar-10 4:31
Jack Vanderhorst6-Mar-10 4:31 
QuestionDetect when Tomcat Startup Pin
bilal.hobnail5-Mar-10 1:08
bilal.hobnail5-Mar-10 1:08 
QuestionHow to connect Tata indicom USB modem in fedora 9 Pin
Tripathi Sushant S4-Mar-10 5:56
Tripathi Sushant S4-Mar-10 5:56 
AnswerRe: How to connect Tata indicom USB modem in fedora 9 Pin
HimanshuJoshi18-Mar-10 23:20
HimanshuJoshi18-Mar-10 23:20 
QuestionMysql connectivity with C program in fedora 9 Pin
Tripathi Sushant S4-Mar-10 5:50
Tripathi Sushant S4-Mar-10 5:50 
AnswerRe: Mysql connectivity with C program in fedora 9 Pin
Graham Breach4-Mar-10 8:11
Graham Breach4-Mar-10 8:11 
QuestionEmbed php forms or flash into facebook, step by step Pin
sharkbc3-Mar-10 23:21
sharkbc3-Mar-10 23:21 
QuestionNewbie to PHP Pin
offroaderdan2-Mar-10 22:53
offroaderdan2-Mar-10 22:53 
AnswerRe: Newbie to PHP Pin
Graham Breach3-Mar-10 0:33
Graham Breach3-Mar-10 0:33 
AnswerRe: Newbie to PHP Pin
chevu3-Mar-10 1:11
chevu3-Mar-10 1:11 
GeneralRe: Newbie to PHP Pin
offroaderdan3-Mar-10 3:01
offroaderdan3-Mar-10 3:01 
GeneralRe: Newbie to PHP Pin
Eddy Vluggen3-Mar-10 7:00
professionalEddy Vluggen3-Mar-10 7:00 
GeneralRe: Newbie to PHP Pin
chevu3-Mar-10 16:58
chevu3-Mar-10 16:58 
GeneralRe: Newbie to PHP Pin
offroaderdan10-Mar-10 4:40
offroaderdan10-Mar-10 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.