Hallo,
sorry hätte ich auch dran denken können.
Am besten ich poste noch mal den gesamten Code und die Fehlermeldung:
PHP-Code:
include("../config/config.inc.php");
// Abfrage Buchstabe
if(isset($_GET["limit"])){
$searchmode = "Begriff LIKE '".$_GET["limit"]."%'"; # LINK auswerten
}
$sqlab = "Select * from cosmetik where " .$searchmode ;
$res = mysql_query($sqlab);
echo mysql_error();
// Tabellenbeginn
echo "<table border=0 align=left>";
while ($dsatz = mysql_fetch_assoc($res))
{
echo "<tr>";
echo "<td width=150><a href='detail.php?id=".$dsatz["id"]."'class='menu' ><font size=2px>". $dsatz["Begriff"] . "</font></a></td>";
echo "</tr>";
echo "<td width=350><font color=red size=2px>INCI:</font><font size=1.5px> " . $dsatz["inci"] . "</font></td>";
echo "<tr>";
echo "<tr></tr>";
echo "<td width=350>" . $dsatz["info"] . "<br></td>";
echo "</tr>";
echo "<tr></tr><br><br>";
echo "<tr></tr>";
echo "<tr>";
echo "<td width=450 height=1 bgcolor=#2E689F></td>";
echo "</tr>";
}
// Tabellenende
echo "</table>";
mysql_close($verbindung);
?>
und jetzt die Fehlermeldung:
Code:
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 '' at line 1
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in E:\apachefriends\xampp\htdocs\c_mayer\layout2\vitawell\lexikon.php on line 117
Leider verstehe ich die erste Fehlermeldung nicht!