MySQL Forums
Forum List  »  PHP

Re: MySQL Query With LIKE variable
Posted by: Steven Pennington
Date: April 01, 2007 03:26PM

Try the following:

$query="SELECT title, keywords, url FROM table WHERE keywords LIKE '$keyword%'";

Options: ReplyQuote


Subject
Written By
Posted
Re: MySQL Query With LIKE variable
April 01, 2007 03:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.