Server IP : 162.241.126.129 / Your IP : 3.145.186.132 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 : |
<?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' "; $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 } ?>