You are on page 1of 2

<?

php
if($u_stat=='online'){
echo "<a href='profile.php?userid=$uidd' style='margin-
left: 90px;color: black'><img class='prof-img' src='$u_img' alt=''></a><p
style='float: right;line-height:4'><b >Buget: $budget MDL</b></p><br>";
}
else
{
echo "<a href='profile.php?userid=$uidd' style='margin-
left: 90px;color: black'><img class='prof-img' src='$u_img' alt=''> $u_nick <span
class='dot' style ='background-color: #F75959;'></span></a><p style='float:
right;line-height:4'><b >Buget: $budget MDL</b></p>";
}
?>

<?php
for ($page=1;$page<=$number_of_pages;$page++) {
echo '<a class="active" href="anunturi.php?page=' .
$page . '">' . $page . '</a> ';
}
?>

<div class="form-group">

<input type="range" min="1" style="width:


250px" max="<?php echo"$maxbug"; ?>" value="100" name="rangebuget" class="slider"
id="myRange"><p style="line-height: 0;float: right"><span
id="demo">&nbsp;</span></p>

</div>

if($first="g"){
$quarr='SELECT * FROM anunt WHERE an_buget>= '.
$bf3.' ORDER BY an_id DESC LIMIT ' . $this_page_first_result . ',' .
$results_per_page;
}
if($first="h"){
$quarr='SELECT * FROM anunt WHERE an_buget<= '.
$bf3.' ORDER BY an_id DESC LIMIT ' . $this_page_first_result . ',' .
$results_per_page;
}
if($first="i"){
$quarr='SELECT * FROM anunt WHERE an_buget >= '.
$bugs.' and an_buget <= '.$bugf.' ORDER BY an_id DESC LIMIT ' .
$this_page_first_result . ',' . $results_per_page;
}
if($first="f"){
$quarr='SELECT * FROM anunt WHERE cat_id='.
$category.' and subcat_id='.$subcategory.' and an_buget >='.$bugs.' and
an_buget<='.$bugf.' ORDER BY an_id DESC LIMIT ' . $this_page_first_result . ',' .
$results_per_page;
}

if($first="g"){
$query="SELECT * FROM anunt WHERE an_buget >=
'$bf3' ORDER BY an_id DESC";
}
if($first="h"){
$query="SELECT * FROM anunt WHERE an_buget <=
'$bf3' ORDER BY an_id DESC";
}
if($first="i"){
list($bugs, $bugf) = explode("/", $bf3);
$query="SELECT * FROM anunt WHERE an_buget >=
'$bugs' and an_buget <= '$bugf' ORDER BY an_id DESC";
}
if($first="f"){
list($category,$subcategory,$bugs, $bugf) =
explode("/", $bf3);
$query="SELECT * FROM anunt WHERE
cat_id='$category' and subcat_id='$subcategory' and an_buget >='$bugs' and an_buget
<= '$bugf' ORDER BY an_id DESC";
}

header("location:../../profile.php?userid=$q");

You might also like