Location: PHPKode > scripts > Open4Listing > index.php
<?php
include("setari.php");
$cxn = @ConnectToDb($dbServer, $dbUser9, $dbPass9, $dbName9);
$check = mysql_query("SELECT * FROM clienti limit 1")or die(mysql_error()); 
while($myrow = mysql_fetch_array( $check )) 
{
$keywords1=str_replace(" ", ", ", $myrow[nume]);
$keywords2=str_replace(" ", ", ", $myrow[fax]);
$nume=$myrow[nume];
$companie=$myrow[companie];
$fax=$myrow[fax];
}

?>









<html>
<head>
<title><?php echo $nume." - ".$fax;?></title>
<meta name=description content="<?php echo $fax.". ".$nume;?>">
<meta name=keywords content="<?php echo $keywords2.", ".$keywords1;?>">
<link rel="stylesheet" type="text/css" href="css.css">
</head>

<body>
<div align="center">
<?php include "elements/header.php";?>
<table border="0" width="900" cellspacing="0" cellpadding="0">
<tr><br><td width="200" valign="top">
<div align="center">
<?php include "elements/menu.php";?>	
</div>
<p>&nbsp;</p>
</td>
<td valign="top" align=center>
<div align="left">
<table border="0" width="100%" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF">
		
<div align=right><b><font face="Arial" size="2" color="#666666"><i><?php echo $fax;?></i></font></b>&nbsp;&nbsp;&nbsp;</div><br>

<?php if(trim($companie))
{
echo "<table border=0 width=94% cellpadding=2 align=center><tr><td bgcolor=#F8F8F8><p align=justify><i><font face=Arial size=2 color=#333333>".$companie."
</font></i></td></tr></table><br>";
}?>

<br>
<?php
$check999 = mysql_query("SELECT * FROM oferte ORDER BY rank desc, idoferta DESC limit 10")or die(mysql_error()); 
while($mzrow999 = mysql_fetch_array( $check999))
{
$judetlnk=str_replace(" ", "+",$mzrow999["judet"]);
$tranzlnk=str_replace(" ", "+",$mzrow999["tranzactie"]);


if(!trim($mzrow999[suprafata]))
{$suprafata="";}else{$suprafata="<font face=verdana>$mzrow999[suprafata]</font>";}


if(!trim($mzrow999[pret]))
{$pret="";}else{$pret="<font face=verdana>$mzrow999[pret] $mzrow999[moneda]</font>";}

echo "<table width=94% align=center border=0 cellpadding=0 cellspacing=0 bgcolor=#F8F8F8>
<tr><td><br><a href=list.php?id=".$mzrow999[idoferta]."><font size=3 color=#777777 face=arial><b><u>".$mzrow999[titlu]."</a></b></u>
<br><font size=1 color=#666666 face=verdana>".$suprafata."    ".$pret."<br><a href=categ.php?categ=".$judetlnk."><font color=#777777>
".$mzrow999["judet"]."</a> > <a href=subcateg.php?subcateg=".$tranzlnk."&categ=".$judetlnk."><font color=#777777>
".$mzrow999["tranzactie"]."</a>
</td><td width=120>";

if($mzrow999["poza1"]==da)
{
echo"<img border=1 src=poze/".$mzrow999[idoferta]."_1_mic.jpeg>";
}


echo"</td></tr></table><br>";
}
 
?>


	
</td>
</tr>
<tr>
<td align=right><?php include "elements/footer.php";?>
</td></tr>
</table>
</div>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
 
&nbsp;
Return current item: Open4Listing