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

  • Home
  • SEARCH
  • 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 7414963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:12:18+00:00 2026-05-29T07:12:18+00:00

This is a weird issue I’m having, I have a table and try to

  • 0

This is a weird issue I’m having, I have a table and try to do a MySQL-Update query, however, PHPMyAdmin keeps saying 0 rows affected.

Table:

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userid` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `last_login` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=55069 ;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `userid`, `name`, `last_login`) VALUES
(1, 55068, 'temp', '2012-02-02 09:04:50');

Query:

UPDATE `users` SET name='xorinzor' AND last_login=NOW() WHERE userid='55068'

No errors are returned, just nothing is happening, got no clue why that would be.

Regards,
Jorin

  • 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-29T07:12:19+00:00Added an answer on May 29, 2026 at 7:12 am

    Change your update sentence to:

    UPDATE `users` SET password='encryptedthingy', name='xorinzor', last_login=NOW() 
     WHERE userid=55068
    

    Your SQL syntax was wrong. If you want to update multiple fields at once, you should not separate them with and keyword but with ,.

    Also, make getting rid of single quotes for '55068' should help, since that column is a number. And '55068' is a string literal.

    Make sure this sentence returns a value:

    select * from `users` where userid=55068
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having this weird issue and I'm hoping someone could clear this up for
This is a weird issue. I have created a view controller with a nib
I have this weird issue. I am trying to create a service that synchs
I have this weird issue which i'm absolutely don't even know how to address...
I am having this weird issue with Cruise Control crashing, when I add the
This is a really weird issue I'm having and I'm not really sure what
I have a weird issue with my CSS. Really can't figure this one out.
HI I have this weird issue. I have the latest version of ADT (11)
I have this weird issue in Magento when someone places an order using PayPal
I have this weird issue that jquery.load sometimes fails on chrome. I'm not gonna

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.