Re: How to create a new Table in prostgresql from a Webinterface

Поиск
Список
Период
Сортировка
От Todd Lewis
Тема Re: How to create a new Table in prostgresql from a Webinterface
Дата
Msg-id 41210DDD.11261.C76F7FC@localhost
обсуждение исходный текст
Ответ на Re: How to create a new Table in prostgresql from a Webinterface  ("Pedro B." <pedro.borracha@netcabo.pt>)
Ответы Re: How to create a new Table in prostgresql from a
Список pgsql-php
Just a followup question.

I'm fairly new to using PHP and pg. Security wise how could I limit a request such as
this? I'm assuming that if you have given a PHP user the ability to create tables, the
user also has the ability to truncate and delete tables as well.

> On php.net, if you did a search for pg_ , you would have seen the PHP
> Function List .....
>
> pg_close pg_connect pg_convert pg_copy_to
> pg_dbname pg_delete pg_get_pid pg_host
> pg_insert pg_lo_open pg_lo_read pg_lo_seek
> pg_ping pg_port pg_query pg_select
> pg_trace pg_tty pg_update preg_grep
>
>
> \\pb
>
> Michelle Konzack wrote:
> > Am 2004-08-15 00:55:34, schrieb Raoul Buzziol:
> >
> >>Michelle Konzack wrote:
> >>
> >>
> >>>Hello,
> >>>
> >>>Never I have done this before (no need) but now I nee to create a
> >>>new table with some colums from a Webinterface and do not know how
> >>>to do that.
> >>
> >>You have to execute a query:
> >>
> >>pg_query(connection, "CREATE TABLE tablename (id serial, val int4...);");
> >
> >
> > :-/
> >
> > I was looking for a php-Command or somthing like this to create the
> > table but not thinking on a pg_query WHICH execute the command...
> >
> >
> > Greetings
> > Michelle
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings



В списке pgsql-php по дате отправления:

Предыдущее
От: "Pedro B."
Дата:
Сообщение: Re: How to create a new Table in prostgresql from a Webinterface
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: How to create a new Table in prostgresql from a Webinterface