Jump to content

[SOLVED] Can not SELECT text?!


razta

Recommended Posts

Hello,

For some reason I cannot get MySQL to SELECT text...

 

This works:

SELECT *
FROM `users`
WHERE `user` = 1337

 

This doesnt:

SELECT *
FROM `users`
WHERE `user` = admin

 

The error I get when executing the second command is:

#1054 - Unknown column 'admin' in 'where clause'

 

However admin is there just like 1337 is. The column user is set to varchar(15).

 

Any ideas?

 

 

Link to comment
https://forums.phpfreaks.com/topic/159159-solved-can-not-select-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.