🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.golive.dynamic.content
Article #134

Re: PHP Click Count question

#134
From: Oliver_Michalak
Date: Fri, 13 Aug 2004 21:01
3 lines
955 bytes
@Jerry: as long as the calulation is done in PHP MySQL accepts numeric values in quotes too, but your second example points to the right direction (a comma is missing IMHO):

$query = "update stories set story_views = story_views + 1 where story_ID = ". pageParameter("showme", "-1") ."";
Technical Details
Message-ID: <3bb5761f.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb5761f.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11ffd2,c02a081cb0c46677
X-Google-Attributes: gid11ffd2,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Oliver_Michalak@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!easynews.net!easynet-isham!easynet.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.golive.dynamic.content
Subject: Re: PHP Click Count question
Message-ID: <3bb5761f.2@webx.la2eafNXanI>
Date: Fri, 13 Aug 2004 14:01:05 -0700
References: <3bb5761f.-1@webx.la2eafNXanI>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit