Jan 10, 2003 #1 martinb7 Programmer Jan 5, 2003 235 GB i hav an affiliates system. Website | traffic from us | 2us i was wondering how do you make it plus 1 to the traffic from us column in the database if someone clicks on the link??
i hav an affiliates system. Website | traffic from us | 2us i was wondering how do you make it plus 1 to the traffic from us column in the database if someone clicks on the link??
Jan 10, 2003 #2 sleipnir214 Programmer May 6, 2002 15,350 US Not a PHP question, but I'll answer. update <tablename> set <columname> = <columnname> + 1 will work in most SQL database servers. Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
Not a PHP question, but I'll answer. update <tablename> set <columname> = <columnname> + 1 will work in most SQL database servers. Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL!
Jan 11, 2003 #3 hos2 Programmer May 6, 2002 418 NL and not to forget update <tablename> set <columname> = <columnname> + 1 where <key> = ID otherwise all your links are incremented Upvote 0 Downvote
and not to forget update <tablename> set <columname> = <columnname> + 1 where <key> = ID otherwise all your links are incremented
Jan 11, 2003 #4 sleipnir214 Programmer May 6, 2002 15,350 US hos2: Yep, I missed that. Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
hos2: Yep, I missed that. Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL!