Jump to content

nightmare sql problem


jk11uk

Recommended Posts

hi

 

ive got a column of keywords and all i want to do is select * where keyword='KEYWORD'. so my query is:

SELECT *

FROM  `keywords`

WHERE  `keyword` =  'ppi'

 

now i have the string 'ppi' in the column, but it wont select it! The annoying thing is i went into phpmyadmin and tried it, no luck. then went into that entry, deleted 'ppi' and replaced with ccc. the search could find 'ccc'! WTF? i then changed back to 'ppi' and it could find that. this happens with every string i have in this column. any ideas?

 

Link to comment
Share on other sites

although the problem now is, say i search for %ppi%, it also returns anything with 'ppi' in - not exact matches (which is what i need). I can use php to sift out the non-exact matches but as this is not efficient do you know what to do? if not i'll go with inefficiency :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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