RE: [PHP-DB] Web Poll Using sql
| From: | Beau Lebens | Date: | Fri, 18 Jan 2002 03:32:21 +0000 |
| Subject: | RE: [PHP-DB] Web Poll Using sql | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-15960@lists.php.net to get a copy of this message | ||
Jacob,
I think you can do something like
UPDATE tablename SET fieldD=fieldD+1 WHERE pollTitle='title';
or similar?
check the manual on updates and mathematical functions probably
-b
// -----Original Message-----
// From: Jacob Wyke [mailto:kettle_drum@yahoo.com]
// Sent: Friday, 18 January 2002 11:20 AM
// To: php-db@lists.php.net
// Subject: [PHP-DB] Web Poll Using sql
//
//
// Hi,
//
// I know this must sound like a really easy question, but im
// trying to create
// a simple web poll, where you choose your answer from a radio
// button and then
// click submit.
//
// On submitting I would like to update a sql table depending
// on what box the
// user clicked.
//
// How can I make it so it increments a table row by one??
//
// So say I click option D, I want Row D in my table Poll to be
// incremented by
// one.
//
// Hope you can help me.
//
// Thanks in advance for any help I receive.
//
//
// _________________________________________________________
// Do You Yahoo!?
// Get your free @yahoo.com address at http://mail.yahoo.com
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
// For additional commands, e-mail: php-db-help@lists.php.net
// To contact the list administrators, e-mail:
// php-list-admin@lists.php.net
//