Hallo,
Habe folgende Select Abfrage. Nur kommt immer eine Fehlermeldung
durch das GROUP BY.
Warning: Supplied argument is not a valid MySQL result resource in /var/www/htdocs/andi/scripts/forum/suche_volltext.php on line 66
Was mache ich hier falsch????
$result = mysql_query("SELECT * FROM forum WHERE thema LIKE '%$suche_volltext%' OR inhalt LIKE '%$suche_volltext%' OR antwort LIKE '%$suche_volltext%' GROUP BY thema",$db);
if(mysql_num_rows($result)>0)
{
while($row=mysql_fetch_array($result))
{
$id=$row["id"];
$kategorie=$row["kategorie"];
$thema=$row["thema"];
$datum=$row["datum"];
echo "<tr>";
echo "<td bgcolor="#ffffff" width="150">";
echo $kategorie;
echo "</td>";
echo "<td bgcolor="#ffffff" width="250">";
echo "<a href="antwort.php?thema=$thema&&kategorie=$kategorie">$thema</a>";
echo "</td>";
echo "<td bgcolor="#ffffff" width="100" align="center">";
echo "</td>";
echo "<td bgcolor="#ffffff" width="100" align="center">";
echo ($datum) ? datum($datum) : "";
echo "</td>";
echo "</tr>";