![]() |
One more quick question, click counting
I'm *trying* to use the following code (link.php) to update a column in my db to count clicks to external links:
Quote:
The link.php page is just opening, with no redirect. Do I need to do something else with the query or the database column to make this work? :helpme |
This is how PHP got labeled as a shitty unsecured language that's easy to hack. I've been defending the language for 15+ years saying its not the language that's bad.
|
Did you tested first query in database over tool like phpmyadmin ?
|
Ignoring all the SQL injection etc,
UPDATE Directory SET Clicks = count + 1 WHERE ID = '$link' should be UPDATE Directory SET Clicks = Clicks + 1 WHERE ID = '$link' |
All times are GMT -7. The time now is 05:40 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc