Skip site navigation (1) Skip section navigation (2)

Re: Tutorial/Example of Insert/Select PDF Postgres DB ?

From: "ben wilko" <wilko_ben(at)hotmail(dot)com>
To: dmagick(at)gmail(dot)com
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Tutorial/Example of Insert/Select PDF Postgres DB ?
Date: 2006-10-14 04:57:54
Message-ID: BAY116-F8AB01E697DF699AD0791D8F0B0@phx.gbl (view raw or flat)
Thread:
Lists: pgsql-php
thank you chris for your solution :)



>From: Chris <dmagick(at)gmail(dot)com>
>To: ben wilko <wilko_ben(at)hotmail(dot)com>
>CC: pgsql-php(at)postgresql(dot)org
>Subject: Re: [PHP] Tutorial/Example of Insert/Select PDF Postgres DB ?
>Date: Mon, 09 Oct 2006 15:51:46 +1000
>
>Firstly always CC the mailing list.
>
>ben wilko wrote:
>>I am looking to have a dynamic page which will allow users to select 
>>categories in which a corresponding PDF file will be accessible to them.
>
>That doesn't make any difference.. It becomes two database tables:
>
>create table downloadfile (fileid serial primary key, filename text);
>create table downloadfile_categories (fileid int references downloadfile 
>(fileid), categoryid int references categories (categoryid));
>
>then a file can be available for multiple categories and so on.
>
>
>If you really want to store binary data in the database, start here:
>
>http://www.postgresql.org/docs/8.1/static/datatype-binary.html
>
>and here:
>
>http://php.net/pg_escape_bytea
>
>--
>Postgresql & php tutorials
>http://www.designmagick.com/
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: Don't 'kill -9' the postmaster



In response to

pgsql-php by date

Next:From: Jean-Christophe RouxDate: 2006-10-14 20:28:41
Subject: plpgsql returning array
Previous:From: Robert TreatDate: 2006-10-10 02:57:07
Subject: Re: PDO and PostgreSQL's LISTEN/NOTIFY

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group