MySQL Forums
Forum List  »  Perl

Some queries work, some don't.....
Posted by: Jim Farthing
Date: October 11, 2007 10:08PM

Hi everyone,
I am using a PERL script and am having some probs with it....

I have the following code....

$query = sprintf (
"SELECT * FROM Cats
where category LIKE '%$search%'
ORDER BY name LIMIT %d,%d",
$start - 1,
$per_page + 1);

Of course the actual script is much longer, but I believe the problem is in here somewhere....

In my DB, I have the following entry:

Middle River Restorations, LLC
Furniture Repair
Furniture Repair, Restoration, Stripping, Refinishing, Chair Canning & Weaving, Residential & Commercial, Moving, Flood and Fire Damage insurance, Custom Fireplace Mantels

If I do a search for 'furniture' I get nothing, if I search for 'repair' it comes up..... BTW in the quoted text above, the first line is name, the second is category and the third is keywords and I am searching on category.

This is driving me nucking futz.....

Any suggestions? I can/will post more of the code if needed.

Thanks!
Jim

Options: ReplyQuote


Subject
Written By
Posted
Some queries work, some don't.....
October 11, 2007 10:08PM


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.