Hi... i think i need somebody to help me with profit calculation project.
here its looks like.
just.irwan 0 Newbie Poster
Recommended Answers
Jump to Postwhat is table struture?
what is ur database? mysql, mssql or other?
do you have sale date/pur date?
Jump to Postwhere is the date?
and I think sql query only can not help, you need to do order by date in query and then you can see result and calculate profie for each row in php.
Jump to PostDOn't know if
total
should be there at all - this IMO should be a calculated field - only 'physical' as a result of a query.SELECT `id`, `date`, `type`, `name`, `quantity`, `price`, `quantity` * `price` AS `total` FROM `example`
The output will be just …
All 11 Replies
urtrivedi 276 Nearly a Posting Virtuoso

LastMitch

LastMitch
just.irwan 0 Newbie Poster
vibhaJ 126 Master Poster
just.irwan 0 Newbie Poster
just.irwan 0 Newbie Poster
urtrivedi 276 Nearly a Posting Virtuoso
Pip88 0 Newbie Poster
just.irwan 0 Newbie Poster

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.