please help i want to load record in my div id ="msgbox"

<div id ="msgbox">
    <form action="connection/selectemp.php" method="post">

    </form>
</div>

this is my connection

<?php
$con = mysql_connect("localhost", "root", "");
if(!$con){
    die('Could not connect:' . mysql_error());
}

mysql_select_db("intranet", $con);
$result = mysql_query("SELECT * FROM `tblmsg` INNER JOIN  `employee` ON tblmsg.empid = employee.empid");

while($row = mysql_fetch_array($result))
    {

    echo $row['uname'] . ":" . "&nbsp" .    $row['messg']; 
    echo "<br />";

    }
mysql_close($con);
?>

but my records do not load... help please thank you ;)

Check Your Database table Column Names

it's now working.. thank you ;)

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.