laspina
Založený: 01.10.2004
Príspevky: 13
Zaslal: 2008-07-15 20:06
Návrat hore
Odpovedať s citátom
|
I have an orders database with two tables:
orders (id_ord,date,...) with pk=id_ord
details (id_det,id_ord,price,...) with pk=id_det,fk=id_ord
I wonder if it is possibile to create a
phpMyEdit form listing the completed orders but also displaying the total import for each order.
For Example :
if orders n. 1 has two items (price 100 and price 200) , I would like to be able to generate this list:
id_ord | total
1 | 300
Thank you for your help.
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2008-09-08 13:39
Návrat hore
Odpovedať s citátom
|
you can use any sql command in 'sql' option (as long as it generates just one field/row). make sure it has permissions LFV only.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|