0

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 ;)

2
Contributors
2
Replies
4
Views
4 Years
Discussion Span
Last Post by bLuEmEzzy
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.