fixed mysql search

git-svn-id: http://yolanda.mister-muffin.de/svn@101 7eef14d0-6ed0-489d-bf55-20463b2d70db
main
josch 17 years ago
parent de53497251
commit 5a30a6f50d

@ -25,7 +25,7 @@ if($query->param('query'))
my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr;
#prepare query
my $sth = $dbh->prepare(qq{select id, title, description, userid, timestamp from videos where match(title, description) against( ? ) }) or die $dbh->errstr;
my $sth = $dbh->prepare(qq{select id, title, description, userid, timestamp from videos where match(title, description, subject) against( ? ) }) or die $dbh->errstr;
#execute it
$sth->execute($query->param('query')) or die $dbh->errstr;

Loading…
Cancel
Save