admin 5/18/2005 | |
Hi, |
adamdidthis author 5/24/2005 | |
Ok, |
admin 5/25/2005 | |
Hi,
|
adamdidthis author 5/26/2005 | |
Hi Here is the query i added to the exisiting one, is this correct as i keep getting an error saying some thing colums? select `ordernum`, |
admin 5/26/2005 | |
The correct SQL query should be as follows: select total, |
adamdidthis author 5/26/2005 | |
The table is called order, and it contains all of the fields in the code above. If i change the query wont it not build the pages correct? dont I need to run a query to build the pages with alll of the fields and then one to add up the total??? |
admin 5/26/2005 | |
Hi, select `ordernum`, |
adamdidthis author 5/26/2005 | |
Hello again, select `ordernum`, |
adamdidthis author 5/26/2005 | |
In the mean time i have tried the query that will just return the total, that produced an SQL error saying it couldn't find the field mytotal. |
admin 5/26/2005 | |
Hi, select `ordernum`, `date`, `refnum`, `delivedate`, `suppname`, `suppadd1`, `suppadd2`, `suppcounty`, `suppcontry`, `supppost`, `suppphone`, `suppfax`, `suppweb`, `suppemail`, `deliverto`, `chargeto`, `quant1`, `descript1`, `cost1`, `quant2`, `descript2`, `cost2`, `delivery`, `vat`, `total`, `quant3`, `descript3`, `cost3`, `quant4`, `descript4`, `cost4`, `quant5`, `descript5`, `cost5`, `quant6`, `descript6`, `cost6`, `quant7`, `descript7`, `cost7`, `quant8`, `descript8`, `cost8`, `quant9`, `descript9`, `cost9`, `quant10`, `descript10`, `cost10`, `quant11`, `descript11`, `cost11`, `quant12`, `descript12`, `cost12`, `qunat13`, `descript13`, `cost13`, `quant14`, `descript14`, `cost14`, `quant15`, `descript15`, `cost15`, `Auth`, cost1 + cost2 + cost3 + Cost4 + Cost5 + Cost6 + Cost7 + Cost8 + Cost9 + Cost10 + Cost11 + Cost12 + Cost13 + Cost14 + Cost15 + delivery as mysubtotal, (cost1 + cost2 + cost3 + Cost4 + Cost5 + Cost6 + Cost7 + Cost8 + Cost9 + Cost10 + Cost11 + Cost12 + Cost13 + Cost14 + Cost15 + delivery) * 0.175 as mytotal From `order` |
adamdidthis author 5/26/2005 | |
would this produce the same results? select `ordernum`,
|
admin 5/26/2005 | |
Yes, your query will work. select , (cost1 + cost2 + cost3 + Cost4 + Cost5 + Cost6 + Cost7 + Cost8 + Cost9 + Cost10 + Cost11 + Cost12 + Cost13 + Cost14 + Cost15 + delivery) 0.175 as myvat, (cost1 + cost2 + cost3 + Cost4 + Cost5 + Cost6 + Cost7 + Cost8 + Cost9 + Cost10 + Cost11 + Cost12 + Cost13 + Cost14 + Cost15 + delivery) * 1.175 as mytotal From `order` |
adamdidthis author 5/26/2005 | |
ok will give that a go, but how do I get it to display the results, I expect i wil have to include the mytotal and myvat fields on the forms? or do i get the origianl total and vat fields to point at them? |
adamdidthis author 5/27/2005 | |
Ok, |
admin 5/30/2005 | |
Hi, |
adamdidthis author 5/30/2005 | |
Ok Tried what you said above and I get the following error: Technical information Error type 256 Error description Unknown column 'mytotal' in 'field list' URL intranet/departments/finance/database/order_edit.phpeditid=2 Error file C:\Inetpub\wwwroot\newintranet\departments\Finance\Database\include\dbconnection.php Error line 26 SQL query select `mytotal`, `myvat`, `ordernum`, `date`, `refnum`, `delivedate`, `suppname`, `suppadd1`, `suppadd2`, `suppcounty`, `suppcontry`, `supppost`, `suppphone`, `suppfax`, `suppweb`, `suppemail`, `deliverto`, `chargeto`, `quant1`, `descript1`, `cost1`, `quant2`, `descript2`, `cost2`, `quant3`, `descript3`, `cost3`, `quant4`, `descript4`, `cost4`, `quant5`, `descript5`, `cost5`, `quant6`, `descript6`, `cost6`, `quant7`, `descript7`, `cost7`, `quant8`, `descript8`, `cost8`, `quant9`, `descript9`, `cost9`, `quant10`, `descript10`, `cost10`, `quant11`, `descript11`, `cost11`, `quant12`, `descript12`, `cost12`, `qunat13`, `descript13`, `cost13`, `quant14`, `descript14`, `cost14`, `quant15`, `descript15`, `cost15`, `delivery`, `vat`, `total` from `order` where `ordernum`=2
|
admin 5/31/2005 | |
Hi, |
|
500249 6/6/2005 |
Hi, |
adamdidthis author 6/7/2005 | |
As above, any news? |
admin 6/14/2005 | |
Hi, |
adamdidthis author 6/29/2005 | |
ok I bet you thought this topic was over...but no I have made some changes. select *,
|
admin 6/30/2005 | |
Hi, |
adamdidthis author 7/6/2005 | |
hurrrrrahh |