Greek/PHP/PostgreSQL

Greek/PHP/PostgreSQL

am 09.04.2002 08:02:01 von John Starkey

Hello all. I'm trying to pass Greek chars from an html form to
postgresql. I've got the DB unicode encoded and I've tried utf8_encode()
the vars.

Is there another step I've missed? I'm really not sure what other info
to post, as I'm new to the whole non-English scene.

Thanks much.

John


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

Re:

am 17.04.2002 23:43:21 von Chadwick Rolfs

You can also use insert into checking () values
('whatever', 'values', 'here');

That's what I do...

On Wed, 17 Apr 2002, Hillensbeck, Preston wrote:

> Ok I figured it out... I wasn't sending data to all of the columns, just
> some. I had some other columns called check_pre_balance and
> check_post_balance. When I entered data for those columns it went through.
> The reason I didn't enter data for those columns is because I haven't worked
> on the SQL command to update the pre and post balances yet and was doing
> some testing first. Ok, well thanks for the replies everyone :)
>
>
> >
>
> >
> > @$sql="INSERT INTO checking VALUES('$check_date', '$check_num',
> > '$check_pay', '$check_amount', '$check_trans_type');";
>
> > check_trans_type is type text
> >
> > The error that comes up is ...
> > Warning: PostgreSQL query failed: ERROR: Bad numeric input format
> > 'check_trans_type' in /etc/httpd/htdocs/checkbook2.php on line 41
> >
>
> POST_VARS should always be strings. Have you tried this without the php,
> as in psql. What happens when you replace, in the insert statement,
> $check_trans_type, with a correct value? Is it supposed to be like
> withdrawl, deposit...etc?
> Good luck
>

Chadwick Rolfs - cmr@gis.net
Cleveland State University - Student
Music Major - The Holden Arboretum Volunteer
Computer Programmer - Student Employee
--*I finally found powdered water;
I just can't figure out what to add to it*--


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Re:

am 17.04.2002 23:43:39 von PHillensbeck

Ok I figured it out... I wasn't sending data to all of the columns, just
some. I had some other columns called check_pre_balance and
check_post_balance. When I entered data for those columns it went through.
The reason I didn't enter data for those columns is because I haven't worked
on the SQL command to update the pre and post balances yet and was doing
some testing first. Ok, well thanks for the replies everyone :)


>

>
> @$sql="INSERT INTO checking VALUES('$check_date', '$check_num',
> '$check_pay', '$check_amount', '$check_trans_type');";

> check_trans_type is type text
>
> The error that comes up is ...
> Warning: PostgreSQL query failed: ERROR: Bad numeric input format
> 'check_trans_type' in /etc/httpd/htdocs/checkbook2.php on line 41
>

POST_VARS should always be strings. Have you tried this without the php,
as in psql. What happens when you replace, in the insert statement,
$check_trans_type, with a correct value? Is it supposed to be like
withdrawl, deposit...etc?
Good luck


Chadwick Rolfs - cmr@gis.net
Cleveland State University - Student
Music Major - The Holden Arboretum Volunteer
Computer Programmer - Student Employee
--*I finally found powdered water;
I just can't figure out what to add to it*--

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org