last day (14 days later) » 

9:55 AM
0
Q: Generate a daily transaction Register

DavePlease, i need assistance on how to generate a register for a transaction which is entered into the database daily as a register, group by each car. See my code below: Selection Criteria: <tr> <td>Start Date:<input type="date" name="d1" class="form-control" id="datepicker" /></td> <td>...

 
@MarcB: Pls, do you have any clue to this issue? If you do, pls let me know. If i know the solution, i will not post this question.
 
Please add your table structure and data in your question...
 
@d.coder: Table structure and data added. Pls note that it is truncated. I have date from 10th-15th for each FLT with status.
 
can you share sqlfiddle of this table quickly? Put good amount of data in it.
 
@d.coder : I have not use that before. How pls?
 
9:55 AM
just need .sql file (table structure and data) of this table that you mentioned in screenshot.
 
@d.coder: so, i should add .sql of this table to my question, right?
 
yes you can add it here or you can use it in sqlfiddle and then share the URL in your question.
 
ok, i am adding the .sql file for the table now
 
in your question?
 
hello d.coder, ican't see where to add the.sql file
CREATE TABLE IF NOT EXISTS `tab_ddaily` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transid` varchar(250) DEFAULT NULL,
`loc` varchar(250) DEFAULT NULL,
`status` varchar(250) DEFAULT NULL,
`createdBy` varchar(250) DEFAULT NULL,
`created_at` date DEFAULT NULL,
`gStatus` varchar(250) DEFAULT NULL,
`fltno` varchar(250) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=421 ;

--
-- Dumping data for table `tab_ddaily`
--

INSERT INTO `tab_ddaily` (`id`, `transid`, `loc`, `status`, `createdBy`, `created_at`, `gStatus`, `fltno`) VALUES
hello d.coder, can you see that?
 
10:03 AM
Yes, got the sql content.
give me few mins, i will get back to you.
 
alright, will be grateful
 
10:40 AM
d.coder, are you still there?
 
Yes
 
altight, thanks
 
this is what you want?
 
exactly
 
Okay, i am posting it as my answer on your original post...
 
10:46 AM
alright, waiting
let me know as soon as you post it pls
 
done
 
pls, let me try it on my system.once confirm, I will THUMB UP for you. pls wait
thanks, I am thumbing up for you, Works perfectly
 
11:01 AM
Happy to hear that... :) Cheers!!
 
very thankful
so, i needed to have two loops?
 

last day (14 days later) »