Adding to an Int row in db


Posted on 16th Feb 2014 07:03 pm by admin

Hi, i have a database which houses all of the users of my site. One of the columns is for points which is default 0.
What I would like to do is add 1 to this number each time they upload an image. What code would i use for this? I have an idea but i dont think it would work. My idea is something like:

$add= +1
Did you know?Explore Trending and Topic pages for more stories like this.

$sql ("update users set points=$add")

Something like that?
No comments posted yet

Your Answer:

Login to answer
139 Like 24 Dislike
Previous forums Next forums
Other forums

HTAccess auto log in?
Hi all.

Too busy driving celebs about lately so I hope someone here can help me out.

I

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

Tournament Brackets (Double Elimination)?
Is making a double elimination tournament style bracket system capable of being done in php?

fire away
i launched about 4 months ago as a lagit co. i have 2 paying clients, 1probono, 1 side progect, and

Quick variable question
hey guys/gals,
im trying to write a php script and it works fine as i have it, but i need to set

Problem with DB connection
Hello there! I'm new to this forum and I'm new to PHP coding also. I wrote something that doesn't ma

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

Preg_match with an array
is there an away to use preg_match with an array?

i want to check a string with an array to s

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash