Action
am 08.04.2002 20:34:39 von Dorin Grunberg
Hi,
Does anyone know of any action script that uses PHP and PostgreSQL?
Thanks,
Dorin
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Re: Action
am 08.04.2002 20:56:01 von Jon Hassen
Like what? Here is a part of a script that takes a couple of variables
determined in the scriots first, and queries a postgresql database using
those variables with PHP.
$result=pg_exec($dbc,"select * from paytext$year where ($when
($where) $where1 order by date desc limit 10") or die ("Couldn't select
data from paytext$year. ");
Is that what you mean?
Jon
At 2:34 PM -0400 4/8/02, Dorin Grunberg wrote:
>Hi,
>
>Does anyone know of any action script that uses PHP and PostgreSQL?
>
>Thanks,
>
>Dorin
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo@postgresql.org so that your
>message can get through to the mailing list cleanly
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
Re: Auction
am 08.04.2002 21:02:02 von Dorin Grunberg
Sorry for my misspelling, I meant Auction.
At 11:56 AM 4/8/02 -0700, Jon Hassen wrote:
>Like what? Here is a part of a script that takes a couple of variables
>determined in the scriots first, and queries a postgresql database using
>those variables with PHP.
>
> $result=pg_exec($dbc,"select * from paytext$year where ($when
>($where) $where1 order by date desc limit 10") or die ("Couldn't select
>data from paytext$year. ");
>
>Is that what you mean?
>
>Jon
>
>At 2:34 PM -0400 4/8/02, Dorin Grunberg wrote:
> >Hi,
> >
> >Does anyone know of any action script that uses PHP and PostgreSQL?
> >
> >Thanks,
> >
> >Dorin
> >
> >
> >---------------------------(end of broadcast)---------------------------
> >TIP 3: if posting/reading through Usenet, please send an appropriate
> >subscribe-nomail command to majordomo@postgresql.org so that your
> >message can get through to the mailing list cleanly
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
Re:
am 17.04.2002 23:52:34 von Dan Wilson
Have you tried echoing the $sql after it is created? it's possible that you
have nothing in your php variables. In that case, and empty string would
cause and error. Otherwise, postgres doesn't care if you have quotes around
an numeric type on insert.
-Dan
Quoting "Hillensbeck, Preston" :
> Hmmm well it still tells me the same thing when I take the quotes off. Is
> there some type of casting that I might have to do? I have read about the
> cast command, but don't understand how to use it.
>
> Hi Preston
>
> @$sql="INSERT INTO checking VALUES('$check_date', '$check_num',
> '$check_pay', '$check_amount', '$check_trans_type');";
>
> Try your INSERT without '' around '$check_amount'. The quotes are only
> used for character-types but not for numeric data.
>
> Regards
> Conni
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly