andrew has asked for the wisdom of the Perl Monks concerning the following question:
$sth = $dbh->prepare( "SELECT * FROM `items` WHERE category = '$id' AND description LIKE '%$search%' OR itemid LIKE '%$search%' OR longdescription LIKE '%$search%' LIMIT $offset, $limit"); $sth->execute or die $dbh->errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MYSQL while function
by gryphon (Abbot) on Sep 07, 2002 at 00:10 UTC | |
|
Re: MYSQL while function
by greywolf (Priest) on Sep 07, 2002 at 03:04 UTC | |
|
Re: MYSQL while function
by blokhead (Monsignor) on Sep 07, 2002 at 06:14 UTC |