Re: Odd "INSERT" Problems with PostgreSQL - Do YOU know?

From: Diana Cionoiu <diana(at)softwaresolutions(dot)ro>
To: Jason <jason(at)op480(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Odd "INSERT" Problems with PostgreSQL - Do YOU know?
Date: 2001-05-24 03:05:03
Message-ID: Pine.LNX.4.30.0105240602410.5796-100000@tudor.softwaresolutions.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>Here's my sql statement:
>$sql = "insert into pricing (prod_id, size_id, price) values ($prod_id,
>$size_id, 0.00)";
>
>here's an example of what it generates before it inserts:
>insert into pricing (prod_id, size_id, price) values (148, 48, 0.00)

The problem is from php, please do this
print $prod_id;
and see what it give you
in php you must have someting like.
$mumu = pg_exec ($conn, "insert into mumulica (mumu1,mumu2) values('" .
$mumu1 . "','" . $mumu2 . "')");

>Thanks!

Have fun

Diana

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Niraj K. Patel 2001-05-24 03:42:22 PostgreSQL 7.03 Install fails on RedHat Linux 6.1
Previous Message Tom Lane 2001-05-24 02:40:38 Re: Estimating costs (was Functional Indices)