Jump to content

Where clause problem


Chupa85

Recommended Posts

I am having a problem with my WHERE clause for my query.  My MySQL version is 4.0  Here is the query.

 

SELECT *

FROM `PageContent`

WHERE `PageName` = Home

 

I am getting the error message #1054 - Unknown column 'Home' in 'where clause'. 

 

I am just trying to pull the data in the PageContent column that is relevant to the desired PageName, in this case home.  The table is just these 2 columns.  I have tried the query with ' marks around Home but it didn't do anything different.  I am really at a loss.  I know that Home is in the PageName field.  Any help would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/100366-where-clause-problem/
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.