hai everybody,

i need help in my container div indide
all the div value is empty means container value is empty message show
any body plz help me

<div Id=" container1">
<div I'd=" friends-cta">
<php echo $viewee[' name'] ?>
</div>
<div I'd=" friends-ota>
<php echo $viewee[' occupation'] ?>
</div>

<div I'd=" friends-emp">
<php echo $viewee[' education'] ?>
</div>

</div>

Try:

<?php if(! $viewee['name'] && ! $viewee['occupation'] && ! $viewee['education']): ?>
    <!-- Display your message here -->
<?php endif; ?>

<div id="container1">
    <div id="friends-cta">
        <?php echo $viewee['name']; ?>
    </div>

    <div id="friends-ata">
        <?php echo $viewee['occupation']; ?>
    </div>

    <div id="friends-emp">
        <?php echo $viewee['education']; ?>
    </div>
</div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.