crud application please help

hi,
can you please guide me in a crud application for one table that have
auto increment serial number for each record can you please give what
syntax do i have to enter new record without writing manually the id of
the record through php connection to postgresql if you can send me an
example for one table with two fields it would be more than enough i
would appreciate if you gave me a link , book name , tutorial web site
,........ etc
thanks in advance

hatem gamal
201515604034
hatem [at] softpro.bz

--
Sent via pgsql-php mailing list (pgsql-php [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php
hatem gamal elzanaty [ Mo, 16 Mai 2011 04:19 ] [ ID #2059559 ]

Re: crud application please help

On 16/05/2011 03:19, hatem gamal elzanaty wrote:
> hi,
> can you please guide me in a crud application for one table that have
> auto increment serial number for each record can you please give what
> syntax do i have to enter new record without writing manually the id of
> the record through php connection to postgresql if you can send me an
> example for one table with two fields it would be more than enough i
> would appreciate if you gave me a link , book name , tutorial web site

Auto-incrementing columns, or SERIAL types [1]:

http://www.postgresql.org/docs/9.0/static/datatype-numeric.h tml#DATATYPE-SERIAL

Default values - look for the DEFAULT keyword:

http://www.postgresql.org/docs/9.0/static/sql-createtable.ht ml

[1] Note that SERIAL isn't a real type, but just syntactic sugar that
creates a sequence and sets the column to pull from the sequence by
default. More on sequences:

http://www.postgresql.org/docs/9.0/static/sql-createsequence .html

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod [at] iol.ie

--
Sent via pgsql-php mailing list (pgsql-php [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php
Rod [ Mo, 16 Mai 2011 09:13 ] [ ID #2059560 ]
Datenbanken » gmane.comp.db.postgresql.php » crud application please help

Vorheriges Thema: How does PHP (and particularly ZF) deal with user types?
Nächstes Thema: Fwd: syntax problem