[Koha-bugs] [Bug 7977] Add a "Quote-of-the-day" feature to the OPAC homepage
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 11 09:49:43 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7977
--- Comment #57 from Jonathan Druart <jonathan.druart at biblibre.com> ---
(In reply to comment #55)
> Created attachment 9504 [details]
> Followup patch addressing items pointed out by Jonathan Druart
Hi Chris,
Thanks for your followup.
However, I think the following syntax is not usable:
$iTotalRecords = $dbh->selectrow_array("SELECT count(*) FROM quotes WHERE
id LIKE %?% OR source LIKE %?% OR text LIKE %?% OR timestamp LIKE
%?%;",undef,($filter, $filter, $filter, $filter));
You can write this like:
$iTotalRecords = $dbh->selectrow_array("SELECT count(*) FROM quotes WHERE
id LIKE ? OR source LIKE ? OR text LIKE ? OR timestamp LIKE
?;",undef,("%$filter%")x4);
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list