Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4102662
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:51:26+00:00 2026-05-20T20:51:26+00:00

UPDATE a75ting.username SET points = points – 5 i want to change the points

  • 0
UPDATE a75ting.username
SET points = points - 5

i want to change the points column in the database WHERE username = $usern

is that how is works?

ALSO– is the $rows variable a session type of variable? can i only request the db connect once to use $rows anywhere? or do you need to connect to tb per request?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:51:27+00:00Added an answer on May 20, 2026 at 8:51 pm

    You need a table, so the query would be:

    UPDATE Table 
    SET points = points - 5
     WHERE username = 'mike'
    

    In php it would be:

    mysql_query("UPDATE Table SET points = points - 5 WHERE username = '". mysql_real_escape_string($username) . "'");
    

    With regards to your question about session variables, no $row would not be a session variable. The only session variables exist within the $_SESSION array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update I want to have an expression (XPath, or Regex Expression, similar) that can
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
UPDATE: Solution at bottom. I recently switched from using a set up such as
UPDATE : A commenter told me to change some codes, this is the new
Update Table1 set name = (select top 1 a.col from Table2 a where Table1.num
Update: Problem solved, and staying solved. If you want to see the site in
UPDATE TABLE1 set TABLE1.col1 = TABLE2.col1 FROM TABLE2 INNER JOIN TABLE3 ON COL2 =
Update 14th May It's the mix of text sizes that breaks it, if I
UPDATE `company` SET `itnumber` = '595959' WHERE (id = 932) So the value of
UPDATE: Skip to the answer if you want to save yourself the lengthy preamble.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.