Add single quotes around $keyword:
"SELECT FirstName, LastName, Age, Hometown, Job FROM people WHERE age <= '$keyword' "
Also use CODE tags when posting to the forum, bye :)
cereal
Veteran Poster
1,146 posts since Aug 2007
Reputation Points: 344
Solved Threads: 223
Skill Endorsements: 22
cereal
Veteran Poster
1,146 posts since Aug 2007
Reputation Points: 344
Solved Threads: 223
Skill Endorsements: 22
Question Answered as of 1 Year Ago by
cereal