ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/lilyexpresslive/software/admin/get_pincode_data.php

<?php 
ob_start();
session_start();
include("inc/config.php");

    $pincode_id = $_POST['id'];
                        	$statement = $pdo->prepare("SELECT * FROM pincode where id='$pincode_id'");
							$statement->execute();
							$result = $statement->fetchAll(PDO::FETCH_ASSOC);
                             foreach ($result as $row) {
                                    if($row['air']=='Yes'&&$row['road']=='Yes')
                                    {
                                         echo '<option value="air">Air</option>'; 
                                         echo '<option value="road">Road</option>';
                                    }
                                     elseif($row['air']=='Yes')
                                    {
                                         echo '<option value="air">Air</option>'; 
                                    }
                                     elseif($row['road']=='Yes')
                                    {
                                         echo '<option value="road">Road</option>';
                                    }
                                    else
                                    {
                                         echo '<option value="">No Shipping Mode Available</option>';
                                    }
                              } 
?>

Zerion Mini Shell 1.0