<?php
include 'dbconnect.php';
$query="select * from pnmsg;";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
$msgs=$row[0];
}
echo $msg;
include 'dbclose.php';
?>
THis is my code and am working in my local machine it give the same error Anybody help .
I could not find any mistake in my code