php vs python

Michael Fesser netizen at gmx.de
Fri May 23 03:29:42 EDT 2008


.oO(Nick Craig-Wood)

>Damon Getsman <dgetsman at amirehab.net> wrote:
>> PHP has great support for accessing a MySQL database,
>
>Actually I'd say PHP's mysql support is lacking a very important
>feature.  mysql_query() doesn't support parameters (or placeholders,
>usually '?')

Where were you the last couple of years? It's lacking a lot more
features, but that's not the fault of the MySQL extension, which is
quite old. Meanwhile we have the improved MySQL extension and PDO.

>It is not a big deal, but I've had it drummed into me to always use
>parameters for user input and I was really suprised PHP didn't have
>them.

PHP supports them since _years_, you just have to choose the right
database interface.

Micha



More information about the Python-list mailing list