M
Mark Toth
I have two questions:
1. I have a string
@string = "This is a long string".
How can I do to make two words "bold" or "italic" in this string, for
example "is" and "long" shoudl be <b>?
2. I am searching in the mysql database with this code:
@results = Product.find
all, :conditions => [ "name LIKE ?",
"%"+@searchstring+"%"])
What if I want to search for many words in different order? I mean if I
should searched for example: "string is a long this" in the string
above?
Thanks,
Mark
1. I have a string
@string = "This is a long string".
How can I do to make two words "bold" or "italic" in this string, for
example "is" and "long" shoudl be <b>?
2. I am searching in the mysql database with this code:
@results = Product.find
"%"+@searchstring+"%"])
What if I want to search for many words in different order? I mean if I
should searched for example: "string is a long this" in the string
above?
Thanks,
Mark