moltar

msg:1265767 | 8:07 pm on Jul 3, 2005 (gmt 0) |
This is the correct way. Are you sure that the problem is not with multiple submits?
|
smagdy

msg:1265768 | 8:19 pm on Jul 3, 2005 (gmt 0) |
yes am very suree and if it was multiple then it should have add same amount all the time.. but most of the time its working right then suddenly add more and with some tracing i found that it adds those amounts just exactly after that line for ex: the number is DB is now 1 then after the update query it becomes 3 or 4 very strange!
|
moltar

msg:1265769 | 8:33 pm on Jul 3, 2005 (gmt 0) |
Could you post a bigger chunk of code? I think there could be a problem with a conditional loop or something similar...
|
copongcopong

msg:1265770 | 4:27 am on Jul 4, 2005 (gmt 0) |
try to put the code in a conditional statement for the post to be sure that it won't be executed if not intended ... e.g. if(isset($_POST['submit'])){ mysql_query("update brands set views=(views+1) where id=".$mycat[0]."") or die(mysql_error()); }
|
|