<html>
<br><br>
<body background="bg.jpg" style="background-repeat:repeat-y;" text="#006080" bgcolor="#ffffff" topmargin="2" leftmargin="5">
<center> <font size=0 face="Times New Roman"> <br><br><font style=arial size=22 color=742505>
<b>ANALYSIS REPORT </font></center>
</b>
<hr width="50%" color=red size=4></hr>
<link rel="stylesheet" type="text/css" href="sddm.css"></link>
<div style="position:absolute; left: 5 ; top:150;">
<div class="navbar">
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem" ><b>ADVANCE ANALYSIS</b></div>
<div class="dropMenu" >
<div class="subMenu" style="display:inline;">
<div class="subItem"><a href="arp.php">ARP Packets</a></div>
<div class="subItem"><a href="ip.php">IP Packets</a></div>
<div class="subItem"><a href="main1.html">Home</a></div>
</div>
</div>
</div>
<script type="text/javascript" src="xpmenuv21.js"></script>
</div>
</div>
</div>
<?php
mysql_connect("localhost","root","vabs");
echo "connected";
mysql_select_db("traffic");
$result=mysql_query("select * from store");
$records=mysql_num_rows($result);
print "<BR><BR><BR><BR>";
print "<table align="center" border="2" cellpadding="6" cellspacing="2">";
print "<tr>";
print "<th>DATE</th>";
print "<th>TIME</th>";
print "<th>SOURCE MAC</th>";
print "<th>DESTINATION MAC</th>";
print "<th>LENGTH</th>";
print "<th>PROTOCOL</th>";
print "<th>SOURCE IP</th>";
print "<th>DESTINATION IP</th>";
print "</tr>";
while($info = mysql_fetch_array( $result ))
{
print "<tr>";
print "<td>".$info['Date'] . "</td> ";
print " <td>".$info['time'] . " </td>";
print " <td>".$info['srcmac'] . " </td>";
print " <td>".$info['desmac'] . " </td>";
print " <td>".$info['length'] . " </td>";
print " <td>".$info['protocol'] . " </td>";
print " <td>".$info['Srcip'] . "</td> ";
print " <td>".$info['DestinIP'] ."</td>";
print "</tr>";
}
print "</table>";
echo "Total number of records are : ";
echo $records ;
?>
</body>
</html>
if i save the page with ana.php it doesnt open also othe php pages are running succesfully.if i save this page with ana.html page opens suggst me a solution.
<br><br>
<body background="bg.jpg" style="background-repeat:repeat-y;" text="#006080" bgcolor="#ffffff" topmargin="2" leftmargin="5">
<center> <font size=0 face="Times New Roman"> <br><br><font style=arial size=22 color=742505>
<b>ANALYSIS REPORT </font></center>
</b>
<hr width="50%" color=red size=4></hr>
<link rel="stylesheet" type="text/css" href="sddm.css"></link>
<div style="position:absolute; left: 5 ; top:150;">
<div class="navbar">
<!-- *********************************Start Menu****************************** -->
<div class="mainDiv" >
<div class="topItem" ><b>ADVANCE ANALYSIS</b></div>
<div class="dropMenu" >
<div class="subMenu" style="display:inline;">
<div class="subItem"><a href="arp.php">ARP Packets</a></div>
<div class="subItem"><a href="ip.php">IP Packets</a></div>
<div class="subItem"><a href="main1.html">Home</a></div>
</div>
</div>
</div>
<script type="text/javascript" src="xpmenuv21.js"></script>
</div>
</div>
</div>
<?php
mysql_connect("localhost","root","vabs");
echo "connected";
mysql_select_db("traffic");
$result=mysql_query("select * from store");
$records=mysql_num_rows($result);
print "<BR><BR><BR><BR>";
print "<table align="center" border="2" cellpadding="6" cellspacing="2">";
print "<tr>";
print "<th>DATE</th>";
print "<th>TIME</th>";
print "<th>SOURCE MAC</th>";
print "<th>DESTINATION MAC</th>";
print "<th>LENGTH</th>";
print "<th>PROTOCOL</th>";
print "<th>SOURCE IP</th>";
print "<th>DESTINATION IP</th>";
print "</tr>";
while($info = mysql_fetch_array( $result ))
{
print "<tr>";
print "<td>".$info['Date'] . "</td> ";
print " <td>".$info['time'] . " </td>";
print " <td>".$info['srcmac'] . " </td>";
print " <td>".$info['desmac'] . " </td>";
print " <td>".$info['length'] . " </td>";
print " <td>".$info['protocol'] . " </td>";
print " <td>".$info['Srcip'] . "</td> ";
print " <td>".$info['DestinIP'] ."</td>";
print "</tr>";
}
print "</table>";
echo "Total number of records are : ";
echo $records ;
?>
</body>
</html>
if i save the page with ana.php it doesnt open also othe php pages are running succesfully.if i save this page with ana.html page opens suggst me a solution.
Last edited: