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

Spaghetti Code
So.

I've pretty much reached the point where I have so many isset s on one page that I can't

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

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

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

Having a problem get the selected item from a drop down menu
I have been looking at this for days now.

I have a drop down menu that get it's values from a

Fetching array then reversing it
Hi, I have a simple problem, I'll try to explain it as best I can:
News entries in my database ar

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

Is there a quick way to do this?
Hi all,

I need to create a mysql table from php that goes a little something like this

Certain files upload, while others do not
I want to read the data from an uploaded file. Not sure why, but it only uploads for certain files.

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