ok

Mini Shell

Direktori : /home2/selectio/www/subamangala/admin/ui-api/
Upload File :
Current File : //home2/selectio/www/subamangala/admin/ui-api/buisness-to-business-details.php

<?php include('../config/config.php'); ?>

<?php error_log("Profile Id".$_POST['profiles_id']); ?>

<?php
$statement = $pdo->prepare("SELECT e.*,natchatram.natchatram as profile_natchathiram FROM `profiles` e left join natchatram on natchatram.id=e.natchatram where e.id='".$_POST['profiles_id']."'");
$statement->execute();
$datas = $statement->fetchAll(PDO::FETCH_ASSOC);
$totalData = $statement->rowCount();
?>

 <div class="table-responsive">
                                                <table id="StData" style="width:100%;" class="table table-striped table-bordered table-condensed table-hover display" style="width:100%; margin-bottom:5px;font-size: 12px;">
                                                    <tr id="first_tr">
                                                        <td>Party&nbsp;Details</td>
                                                        <td>Profile&nbsp;Id</td>
                                                        <td>Name</td>
                                                        <td>Date&nbsp;Of&nbsp;Birth</td>
                                                        <td>Natchathiram</td>
                                                        <td>Education</td>
                                                        <td>Working&nbsp;Place</td>
                                                        <td>Monthly&nbsp;Income</td>
                                                        <td>Father&nbsp;Name</td>
                                                        <td>Native</td>
                                                    </tr>
                                                    <tr style="background-color: burlywood;font-weight: bold;">
                                                        <td><?=$datas[0]['bname']?><br><?=$datas[0]['cellno']?></td>
                                                        <td><?=$datas[0]['regtype']?><?=$datas[0]['id']?></td>
                                                        <td><?=$datas[0]['bname']?></td>
                                                        <td><?=$datas[0]['dob']?></td>
                                                        <td><?=$datas[0]['profile_natchathiram']?></td>
                                                        <td><?=$datas[0]['edu']?></td>
                                                        <td><?=$datas[0]['job_place']?></td>
                                                        <td><?=$datas[0]['monthly_income']?></td>
                                                        <td><?=$datas[0]['father_name']?></td>
                                                        <td><?=$datas[0]['native_place']?></td>
                                                    </tr>
<?php 
$sql = "SELECT e.*,natchatram.natchatram as profile_natchathiram FROM `profiles` e left join natchatram on natchatram.id=e.natchatram where e.id in ($datas[0]['business_id'])";
 error_log($sql);
$statements = $pdo->prepare("SELECT e.*,natchatram.natchatram as profile_natchathiram FROM `profiles` e left join natchatram on natchatram.id=e.natchatram where e.id in (".$datas[0]['business_id'].")");
$statements->execute();
$datass = $statements->fetchAll(PDO::FETCH_ASSOC);
$totalDatas = $statements->rowCount();
if($totalDatas>0){
foreach($datass as $matchs){
?>                                                    
                                                    
                                                    
                                                    
                                                    
                                                    
                                                    <tr style="background-color: coral;font-weight: bolder;">
                                                        <td><?=$matchs['bname']?><br><?=$matchs['cellno']?></td>
                                                        <td><?=$matchs['regtype']?><?=$matchs['id']?></td>
                                                        <td><?=$matchs['bname']?></td>
                                                        <td><?=$matchs['dob']?></td>
                                                        <td><?=$matchs['profile_natchathiram']?></td>
                                                        <td><?=$matchs['edu']?></td>
                                                        <td><?=$matchs['job_place']?></td>
                                                        <td><?=$matchs['monthly_income']?></td>
                                                        <td><?=$matchs['father_name']?></td>
                                                        <td><?=$matchs['native_place']?></td>
                                                    </tr>
<?php } }else{ ?>
             <tr><td colspan="10" style="text-align:center;color:red;">No Matching Profiles</td></tr>

<?php } ?>

                                                </table>
                                            </div>
       	
                         

Zerion Mini Shell 1.0