Skip site navigation (1) Skip section navigation (2)

Re: Adding to multiplied values

From: Reed Loefgren <rloef(at)interfold(dot)com>
To: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
Cc: PHP on postgresql list server <pgsql-php(at)postgresql(dot)org>
Subject: Re: Adding to multiplied values
Date: 2006-05-19 13:13:10
Message-ID: 20060519065138.K92929@auden.jmla.com (view raw or flat)
Thread:
Lists: 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

In response to

Responses

pgsql-php by date

Next:From: Randy MollerDate: 2006-05-19 13:39:42
Subject: Re: Adding to multiplied values
Previous:From: Volkan YAZICIDate: 2006-05-19 07:09:42
Subject: Re: Adding to multiplied values

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group