Re: Adding to multiplied values - Mailing list pgsql-php

From Reed Loefgren
Subject Re: Adding to multiplied values
Date
Msg-id 20060519065138.K92929@auden.jmla.com
Whole thread Raw
In response to Re: Adding to multiplied values  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
Responses Re: Adding to multiplied values
List pgsql-php
On Fri, 19 May 2006, Volkan YAZICI wrote:

> On May 18 10:45, Reed Loefgren wrote:
>> I've been hacking away on a little time billing database and I've been
>> having difficulty adding to a calculated amount.
>
> Can we see the exact PHP code stands for the execution of related query?
>
>
> Regards.
>
>

Sure, and thanks. This query works, but I fail at tying in $totalExpenses
to create a $grandTotal. (pine is gonna butcher this...);

         $query = "INSERT INTO invoices2 (idate, iperiod, inum, ijobcode,
iaccount, icomp, itime, isub, create_time) VALUES('" . $invoiceDate . "',
'" . $billingPeriod . "', '" . $invoiceNumber . "', '" . $jobCode . "', '"
. $accountNumber . "', '" . $billingRate . "', '" . $totalHours . "', '" .
$billingRate * $totalHours . "', 'now()')";


r

pgsql-php by date:

Previous
From: Volkan YAZICI
Date:
Subject: Re: Adding to multiplied values
Next
From: "Randy Moller"
Date:
Subject: Re: Adding to multiplied values