Witam mam taka malą prośbę chcialem stworzyc sobie wyszukiwarke filmow na swoja strone wpisalem wszystkie dane do polaczenia z baza jednak cos jest nie tak wyskakuje mi lista wszystkich filmow i do tego zaden z tych nie jest odnosnikiem do filmu .prosze zobaczyc na zdjeciu .

Jesli orientujecie sie co robie nie tak prosze o pomoc . A to kod tej wyszukiwarki .
<head>
<link rel="stylesheet" type="text/css" href="includes\css.css">
</head>
<html>
<body>
<font face="tahoma" size="4"> <font face="Verdana, Arial, Helvetica, sans-serif">Wyszukiwarka Filmów</font></font>
<form action="
<?php echo($_SERVER['PHP_SELF']); ?>" method="post">
<font face="Verdana, Arial, Helvetica, sans-serif"> Wpisz nazwę filmu:
<input type="text" name="words" value="
<?php echo($words); ?>">
<br>
<br>
<input type="hidden" name="good" value="yes">
<input type="submit" value="Szukaj">
</font>
</form>
<p><font face="Verdana, Arial, Helvetica, sans-serif"><br>
<br>
<?
/*
This script is set up specifically for me so some things will need changing.
I made this script because there is a lack of good mysql serching scripts out there.
*/
if($_POST['good']=='yes')
{
echo("<font face=\"tahoma\" size=\"3\" color=\"green\"><b>Results for $words</b></font><br><br>"); $location = ""; // database host (localhost)
$username = ""; // mysql username
$password = ""; //mysql password
$database = ""; //mysql database name
$db_table = "filmy"; // mysql table name to search
$mysql_row = "nazwa"; // This is the row in your mysql database that you want to search for text in.
if (!$conn) die ("Could not connect MySQL");
$query = "ALTER TABLE $db_table ORDER BY id DESC";
$query = "SELECT * FROM $db_table";
{
/*
event_id
event_date
event_venue
event_headline
event_town
are all rows in my mysql table. You must replace them with your own rows / rows
*/
$rawid = ($row[event_id]);
$rawmonth = ($row[event_nazwa]); //yes strange variable names. It works so it doesnt matter.
$rawdate = ($row[event_adres]); //T just grab extra data to be added with the search tool
$rawyear = ($row[event_opis]);
$newnews = preg_replace("/$words/i", "<b><font color=\"red\">$words</font></b>", $row[$mysql_row]); $display = '<font face="tahoma" size="2"><b>' .$rawmonth . ' ' . $rawdate . ', ' . $rawyear . '</b><br>' . $newnews . '</font><br><br>';
$foundcount++;
}
$totalcount++;
}
if(is_null($foundcount)){$foundcount=0;} echo("<font face=\"tahoma\" size=\"3\" color=\"green\"><b>Found $foundcount entries out of $totalcount</b></font>"); }
?>
<br>
<left><a href="http://www.e-kanciapa.pl/index.php"><img src="http://www.e-kanciapa.pl/filmyonline/images/wroc.png" alt="Wróć na stronę główną portalu !!" /></a></left><br><br>
Ten post edytował hbboz 20.03.2011, 11:54:26