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 9018995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:40:13+00:00 2026-06-16T04:40:13+00:00

the query is $sql = update students set status = ‘active’, student_password='{$password}’ where student_id

  • 0

the query is

$sql = "update students set status = 'active', student_password='{$password}' where student_id ='".$_GET['id']."'";

it showing the result as

update students set status = 'active', student_password='50d0d53f546b7' where student_id ='112s23dd'

the error comes

Unknown column '112s23dd' in 'where clause'

when i put any int value in the where clause it works fine but not working in the charecter
the student_id is primary key varchar(30)
one more strange thing this is working on phpmyadmin when i paste it there but not work when i execute this on webpage

  • 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-06-16T04:40:14+00:00Added an answer on June 16, 2026 at 4:40 am

    I have made a fiddle with the data that you have provided. Your query works just fine. I think the problem might be if you have not updated the database on the website or changed the type of column ‘student_id’ in the meantime. Please double check your database on the server.

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

Sidebar

Related Questions

I have this SQL update query: UPDATE table1 SET table1.field1 = 1 WHERE table1.id
I ran this sql query in my database: update payments set method = 'paysafecard'
Error SQL query: UPDATE `wfg_db`.`employee` SET `DOB` = (DECLARE@mm INT DECLARE@xm INT SET @mm
Imagine the following sql query: UPDATE MYTABLE SET COL2 = (SELECT COL2 + 1
I can execute this kind of query in SQL Server: update tblmembers set hits_archived
My SQL query UPDATE Task SET Done = 1 WHERE (ID = (SELECT ID
I have following SQL UPDATE query: UPDATE Invoices SET Price = (SELECT SUM(Price*ProductsAndServices.Amount) FROM
I have used function substr in my sql query: UPDATE staff SET dept_id='.$department.', SUBSTR(auth,
Presently troubleshooting a problem where running this SQL query: UPDATE tblBenchmarkData SET OriginalValue =
Is this true that Update SQL Query is slow because of Clustered index??????

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.