<?php @include("./config.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="bg" xml:lang="bg" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Search Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./files/style.css" rel="StyleSheet" type="text/css" />
</head>
<body>
<table align="center" border="1" class="table1" cellpadding="8">
<tr>
<td colspan="3" align="center">
<table align="center" class="table" border="1" width="750"><?php
@mysql_connect($host,$user,$password);
@mysql_select_db($db);
@mysql_query("SET CHARACTER SET utf8") or die( "DB ERROR");
$stoinost1=$_GET['stoinost1'];
$stoinost2=$_GET['stoinost3'];
$stoinost3=$_GET['stoinost2'];
$query = sprintf("SELECT * FROM stoinosti WHERE
stoinost1='$stoinost1'
AND stoinost2='$stoinost2'
AND stoinost3='$stoinost3'
",
mysql_real_escape_string($stoinost1),
mysql_real_escape_string($stoinost2),
mysql_real_escape_string($stoinost3),
);
$result=@mysql_query($query);
$num=@mysql_num_rows($result);
@mysql_close();
if($num>0){
$i=0;
while ($i < $num)
{
$id=mysql_result($result,$i,"id");
?>
<tr>
<td><?php echo $ime; ?><a href="content.php?id=<?php echo $id; ?>" class="a">Information</a></td>
</tr>
<?php $i++;}}else {echo "
<tr>
<td valign=\"top\" width=\"600\" align=\"center\">
<br />
Nqma otkriti<br /><br />
</td>
</tr>";}?>
</table>
</td>
</tr>
</table>
</body>
</html>