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

$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

Javascript form submit and radio buttons?
When this form is submitted, it is automatically resubmitted using JS.

All my fields are carr

PHP code for a proxy
I was wondering which function I could use to create an online proxy tool. I was thinking cURL would

help with variable
I've got a problem, i want to echo some images depending on the $id, however for me to get that id i

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built

Most basic form question ever?
Hello,

I want to use this snippet to make sure the fields in a form are ok before processing

Table trouble
i have been reading the forum for a few weeks and decided to join. i like the format and the advice

media recovery
Hi,
i startup the database i got the error

SQL> startup
ORACLE instance started.

Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl

Text to picture Generator
Hello, i have found this script and it works really good^^ But i have one problem, i would like to c

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