heinrich ich hab jetzt mal das von dir genommen und ergibt mir diesen fehler!
Zitat:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc) AGAINST ('bushido augenblick' IN BOOLEAN MODE) ORDER BY title ASC' at line 1
|
PHP-Code:
<?
include('cbonline/inc/cfg.inc');
include('axel/inc/fnc.inc');
include('axel/inc/tpl.inc');
$search = $_GET['search'];
if(!isset($search)) {
echo 'Du musst ein Suchwort angeben!';
} else {
$string = stripslashes($search);
$sql = "SELECT * FROM `cb_galerie` WHERE MATCH (title, desc) AGAINST ('".$search."' IN BOOLEAN MODE) ORDER BY title ASC";
$res = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($res)) {
echo $row[title];
}
}
?>