Mmm ok, pues puse así:
Código PHP:
<?php
$query = mysql_query("SELECT count(*) as filas, Palabra FROM tabla GROUP BY Palabra ORDER BY filas DESC LIMIT 0, 8");
$t3 = mysql_fetch_array($query);
$t3mp = $t3['texto'];
?>
<p><font color="orange">
<?php
//$crotz = "<ul>";
$crotz = '';
$crotz .= '<a class="latest" href="';
$crotz .= "http://".$domain."/index.php?search=".urlencode($t3mp)."&source=All";
$crotz .= "\">".htmlspecialchars($t3mp)."</a>";
//$crotz .= "</ul>";
echo $crotz;
?>
</font>
</p>
<!-- </div> -->
Y como pense, me sale este error:
Cita: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/uwebes/public_html/music/the-includes/latestsearches.php on line 4
Mi tabla es
search y en donde esta escrito lo que busco es en la fila
texto