Locations immobilières
au Sénégal classées par régions
Pour voir toutes les annonces
de particuliers et de professionnels >>>
cliquez ici
N'afficher que les ventes à Dakar
& banlieue | sur
la Petite Côte | dans
les autres régions | les
terrains
include("php/datacon.php");
if ($cat_id=="") $cat_id="14";
$time = time ();
$limitPerPage = 30;
$initStartLimit = 0;
if (!isset($startLimit))
{
$startLimit = $initStartLimit;
}
$querylimit = " limit $startLimit,$limitPerPage ";
$nextStartLimit = $startLimit + $limitPerPage;
$previousStartLimit = $startLimit - $limitPerPage;
$querysearch = "select * from ifads_ads where idcat ='$cat_id' AND exp_date>'$time' ORDER BY add_date DESC";
$queryall = $querysearch.$querylimit;
$resultsearch = MYSQL_QUERY($queryall);
$numbersearch = mysql_Numrows($resultsearch);
$x=0;?>
while ($x<$numbersearch)
{
$ad_id=mysql_result($resultsearch,$x,"ad_id");
$cat_id2=mysql_result($resultsearch,$x,"cat_id");
$sujet=mysql_result($resultsearch,$x,"subject");
$descript=mysql_result($resultsearch,$x,"descript");
$dateaj=mysql_result($resultsearch,$x,"add_date");
$ajoutdate=date("d/m/Y",$dateaj);
if (strlen($descript) > 90) {
$descript = substr($descript,0,90);
$descript .= "...";
}
if (strlen($sujet) > 65) {
$sujet = substr($sujet,0,65);
$sujet .= "...";
}
$x2=($x+1);
?>
echo $x2;?>- |
echo $sujet;?> |
Insérée le : echo $ajoutdate;?> |
|
Région
de location :
if ($cat_id2==15) echo"Petite Côte (Saly, La Somone, Mbour, etc...";
if ($cat_id2==14) echo"Dakar et sa banlieue";
if ($cat_id2==7) echo"Autres régions du Sénégal";
?>
echo $descript;?>">>>>
suite |
|
$x++;
} ?>
include ("bas.php"); ?>