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

getting a website's source code as a variable? How?
Hey guys, is there any way for me to get the source code of a website as a variable for me to work w

isset undefined variable
Hi all,

Hope someone can point out the obvious. I've a log in script, if you dont enter a use

ereg_replace()
Basically what i need to do is

$title = "This Suck's"

$striped = ereg_repl

how to query data from website using VC?
I want to query some datum from a website,so I need a program to read data from a .csv file, and ass

How to replace search button with link?
hi to everbody.
i have a search submit form and button like this :

<form id="f

need a script for 3 pages
I have a customer who wants me to set up a site with a number of pages with the following requiremen

How do I use a global footer..?
If my index.php has a bole bunch of if functions and exit's in them

Error when call dll from oracle
Hi all, please help me!

I have dll write C language, I want call it from oracle procedur

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

How to read CSS message data
Hi,
I have a requirement here. When working as a Dev angel for multiple customers its really di

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