Jump to content

How would I make words in a table change after a thing is met?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
Sorry about the title, I couldn't think of a title.

So right now I'm working on a user system for a website. So far all I have are the id, username, and pw parts of the table. I'm trying to find out if I can add a rank system too.
Kinda like the codecall thing, you start as a "newbie" then after you reach a certain number of posts you advance to "learning programmer" and so on. I want to add something similar. How would I make the title change after that user reaches a certain goal. I coudn't think of an example either so I had to use codecall.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You would use an update statement.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
Ok.

#4
inenigma

inenigma

    Newbie

  • Members
  • Pip
  • 3 posts
Yes, you would use an UPDATE statement after you had determined that the user had first achieved something (number of posts for example). You first need to determine what your criteria is to perform whatever update.