Autor Zpráva
achjo
Profil *
Tady je skrip, ktery mi nefunguje, nehazi error, ale nefunguje, proc, to nevim. Pomozte mi prosim.

<?php
mysql_connect("*","*","*");
mysql_select_db("*");

$sql = "SELECT *,MATCH (nadpis, text) AGAINST ('$word' IN BOOLEAN MODE) relevancy FROM
texty WHERE MATCH (nadpis, text) AGAINST ('$word' IN BOOLEAN MODE) ORDER BY
relevancy DESC";



$q = mysql_query ($sql);
echo mysql_error();
$n = mysql_num_rows($q);

?>
<?php echo $n; ?> záznamy/ů:
<br />
<?php

while ($arr = mysql_fetch_array($q)) {
?>
<li><?echo $arr["jmeno"];?>
<?echo " &nbsp;&nbsp;>&nbsp;&nbsp; "; ?>
<?echo $arr["popis"];?>
<?echo "<br />";?></li>
<?
}

?>
<br />
<?
mysql_close();

?>

a formular

<form method="GET" action="hledej.php">
<p>Hledání:</p><input type="text" name="word" value="<?php echo $_GET['word']?>">
<input type="submit" name="submit" value="search">
</form>
Kajman_
Profil *
$sql = "SELECT *,MATCH (nadpis, text) AGAINST ('$_GET[word]' IN BOOLEAN MODE) relevancy FROM
texty WHERE MATCH (nadpis, text) AGAINST ('$_GET[word]' IN BOOLEAN MODE) ORDER BY
relevancy DESC";
Toto téma je uzamčeno. Odpověď nelze zaslat.