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

Odd or Even
Inside of a while loop I need to echo several rows of info...easy enough.

In the loop (for th

import table with dependency
Hi

What is the best way to import table back which has dependency?

SQL> cre

php automatically escaping single quotes
I'm trying to test out my security a bit and I've noticed that php is escaping my single quotes. For

Something like an INI editor or a DelimitedText-Editor
Hi all,

Am very, very, very new to PHP and not sure if I should be posting this to a Javascri

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

php email checker
I am having alot of trouble finding info on how to do these email things. I need to do the following

Validating time
Hi Guys

what do you think of the following approach to validate a 24hour time:

http://

bit of help needed
Im about to sort out my registration page for my website by customising a "registration" s

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

Guixt issue
Hello all,

We are experiencing the following problem with Guixt:

Some transact

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