<?php
require_once("../dbconfig.php");
if(!empty($_POST["customer"])) {
$query ="SELECT * FROM company_contact WHERE customer_id = '" . $_POST["customer"] . "' ORDER BY id";
//echo $query;
//exit;
?>


                             
                               <?php
							   
							    	$t_result=mysqli_query($con,$query);
									while($contact=mysqli_fetch_assoc($t_result))
									{
										
									?>
           <option selected style="padding:15px; background-color:#2977C9; color:#F9F0F1; cursor:pointer;" value="<?php echo $contact['id']; ?>">
              <?php echo $contact['name']." - ".$contact['mobile']; ?>
                           </option>
		<?php } ?>
        <option style="padding:10px; background-color:#FCEC0A; color:#000000; cursor:pointer;" value="0">Select a Contact
        </option>
        <option style="padding:10px; background-color:#FCEC0A; color:#000000; cursor:pointer;" value="0">Add New Contact
        </option>
                   
                     
<?php }  ?>
