Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 25-07-2008, 11:13 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jul 2008
Posts: 1
Default Can anyone send me the error in the script


<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.

Last edited by vabs14; 25-07-2008 at 03:38 PM. Reason: problem defination
vabs14 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 25-07-2008, 01:45 PM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: Can anyone send me the error in the script

Nice Post.
Can you please take the effort to tell us what error you are getting?
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 25-07-2008, 02:04 PM   #3 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: Can anyone send me the error in the script

@vabs14,
Arey bro... whats the error ?? Can u please clarify ?? Is it PHP error or HTML/CSS error ??
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WSindows Script error on startup ITTechPerson Software Q&A 4 23-04-2008 07:00 PM
IE script error ferrarif50 Software Q&A 7 07-02-2007 01:50 PM
Script error in IE7 DipDaWiz Software Q&A 3 29-12-2006 09:13 AM
Java script error ramprasad QnA (read only) 2 23-11-2006 10:05 AM
Script Error shwetanshu QnA (read only) 2 03-02-2005 12:39 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2