pg.ddx.io pgsql-php@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Reed Loefgren <rloef@interfold.com>
To: Volkan YAZICI <yazicivo@ttnet.net.tr>
Cc: PHP on postgresql list server <pgsql-php@postgresql.org>
Subject: Re: Adding to multiplied values
Date: Fri, 19 May 2006 07:13:10 -0600 (MDT)
Message-ID: <20060519065138.K92929@auden.jmla.com> (raw)
In-Reply-To: <20060519070942.GA215@alamut>
References: <20060518223103.G91432@auden.jmla.com>
<20060519070942.GA215@alamut>
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
view thread (4+ messages) latest in thread
Message-ID: <20060519065138.K92929@auden.jmla.com> Permalink: ../20060519065138.K92929@auden.jmla.com/ Also on: postgresql.org/message-id/20060519065138.K92929@auden.jmla.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-php@postgresql.org Cc: rloef@interfold.com, yazicivo@ttnet.net.tr Subject: Re: Adding to multiplied values In-Reply-To: <20060519065138.K92929@auden.jmla.com> References: <20060518223103.G91432@auden.jmla.com> <20060519070942.GA215@alamut> <20060519065138.K92929@auden.jmla.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox