AW: [PHP-DB] selecting and updating fields

2003-10-12 Thread Lars Jedinski
ilto:[EMAIL PROTECTED] > Gesendet: Montag, 13. Oktober 2003 05:40 > An: [EMAIL PROTECTED] > Betreff: [PHP-DB] selecting and updating fields > > > Hi ! > > I've got a form that passes a variable to a script. > The script connects to a database and I need to check if a &g

[PHP-DB] selecting and updating fields

2003-10-12 Thread Claudiu Bandac
Hi ! I've got a form that passes a variable to a script. The script connects to a database and I need to check if a field containing that variable already exists in the table, and if it does, to select the "nr_of_views" field, increment it, and update the table and if it doesn't, to create a ne