as i said this works ok in opera but get errors on page if run in explorer when you press either button
any ideas
cheers
Doug
PHP Code://Retrieves data from MySQL
$data = mysql_query("SELECT * FROM register where name='$myname'") or die(mysql_error());
$count = mysql_num_rows($data);
if ($count==0) {
header ("Location: wrong.html");
} else {
//Puts it into an array
while($info = mysql_fetch_array( $data ))
{
//Outputs the image and other data
Echo "<img class=\"style1\" src=http://www.lostpetsplymouth.com/images/".$info['pname'] ." alt=\"Image\" align=\"center\" width=\"250px\" height=\"300px\" style=\"display:block;margin:0 auto;\" hspace=\"10px\" vspace=\"8px\"> <br>";
Echo "<p class=\"style3\">" . $info['state'] . " " . $info['type'] . " </p>";
Echo "<p class=\"style2\"><b>Area:</b> ".$info['area'] . " </p>";
Echo "<p class=\"style2\"><b>Details:</b> ".$info['desc'] . " </p>";
Echo "<p class=\"style3\"><b>If Seen Please Tel:</b> ".$info['tel'] . " </p>";
}
}
?>
</div>
<div>
<input type="button" value="Print this page"
onclick="printpage()" />
</div>
<div>
<input type="button" value="Cancel"
onclick="index.html"/>
</div>
</body>
</html>




Bookmarks