Hi. I have been browsing for about a week and today I got the courage to ask for help.
I'm trying to update a database with a random number range.
Here is the code I'm trying to change:
$DB->query("UPDATE " . DB_PREFIX . "$table SET totalviews=totalviews+1 WHERE $column='$content_id' LIMIT 1");
Instead of incrementing by 1, I want it to increment in a range between 3 and 11 randomly.
Today was my first time trying to do anything in php. I spent hours on the net searching and tried so many different things I'm starting to wonder if it can be done.
If anyone can copy the above code and paste it in their comments with the ncessary changes to do what I want, it would be appreciated.
Thanks