fixed mysql search
git-svn-id: http://yolanda.mister-muffin.de/svn@101 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
de53497251
commit
5a30a6f50d
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ if($query->param('query'))
|
||||||
my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr;
|
my $dbh = DBI->connect("DBI:mysql:$database:$dbhost", $dbuser, $dbpass) or die $dbh->errstr;
|
||||||
|
|
||||||
#prepare query
|
#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
|
#execute it
|
||||||
$sth->execute($query->param('query')) or die $dbh->errstr;
|
$sth->execute($query->param('query')) or die $dbh->errstr;
|
||||||
|
|
Loading…
Reference in a new issue