Re: Using Database (PHP)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks,
Do you think PDO is better or pg_query_params?
because PDO is supported by PostgreSQL.

On Mon, Jul 13, 2020 at 8:18 PM Jigar Dhulla <jigar.tidus@xxxxxxxxx> wrote:


On Mon, Jul 13, 2020, 3:38 PM Ashkar Dev <ashkardev@xxxxxxxxx> wrote:
Does anyone have an answer?

I have developed a web application, I used (pg_query) for working with the database:

1. should I convert all (pg_query) to (pg_query_params) or to (PDO)?
2. whats different between all these three types?
3. when it is necessary to use (pg_prepare)?

Thanks.
Pdo is recommended if you plan to switch to other database. And parameterized queries are better as it prevents SQL injection (attack).

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux