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
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.