Hi, I need help with some lines of code.
I have master/detail tables:
Master: User.Userid
and
Detail: Photo.pic_userid
User
Userid (int, primary key, auto inc.)
Name
Password
Photo
Photoid (int, primary key, auto inc.)
Pic_userid
Picture
Counter
Each time someone (also a guest) goes to the specific "Photo" viewpage the field calculates +1
With:
$strSQLUpdate = "update Photo set Counter=Counter+1 where Photoid=".$values["Photoid"];
CustomQuery($strSQLUpdate);
I need help to modify this code to be used in listpage
each displayed line in listpage should calculate +1 or if this is not possible the fist entry should calculate +1
is this possible?
thx
A.