stockton Posted July 10, 2009 Share Posted July 10, 2009 The following code works fine in Windows Firefox but only the image displays if in IE. None of the top of the screen appears. <?php $DBUsername = "???"; $DBPassword = "?????"; $DBName = "???"; $conn=OCILogon($DBUsername,$DBPassword,$DBName); $MemberNumber = (isset($_REQUEST['mnumber'])) ? $_REQUEST['mnumber'] : ''; if ($MemberNumber == "") { $FullName="Invalid member number!"; copy ("noface.jpg", "image.jpg"); } else { $SQL2="SELECT MEM_SNAME, MEM_FNAME, MEM_TITLE, i.IMAGEDATA FROM MEMBERS, IMAGESTORE i WHERE MEM_FACE = i.id and MEM_NUMBER=$MemberNumber"; $stmt=OCIParse($conn,$SQL2); OCIExecute($stmt); $Count = 0; while ($row=oci_fetch_array($stmt, OCI_ASSOC)) { $Surname = $row['MEM_SNAME']; $FirstName = $row['MEM_FNAME']; $Title = $row['MEM_TITLE']; $Face = $row['IMAGEDATA']; ++$Count; } if ($Count == 0) $FullName="Invalid member number!"; else $FullName=$Title." ".$FirstName." ".$Surname; $fr = fopen("image.jpg", 'w'); fputs($fr, $Face); fclose($fr); OCICommit($conn); OCIFreeStatement($stmt); OCILogoff($conn); } ?> <html> <head> <title>Display Member</title> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT"> <link rel="stylesheet" type="text/css" href="style/style.css"> </head> <body> <center> <H1>Display Member Images.</H1> <br/><br/> </center> <form name="dm" id="dm" method="post" action="OracleBlob.php"> <center> <font color="white"> Member Number: <input type="text" name="mnumber" /><br/><br/> Member Name: <?php echo $FullName ?></font> <center> <INPUT TYPE="submit" name="submit" value="submit"> </center> <br/><br/> <img src="image.jpg" border=0/> </form> </center> </body> </html> Please tell me why Microsoft is discriminating against me. Quote Link to comment Share on other sites More sharing options...
npsari Posted July 10, 2009 Share Posted July 10, 2009 lol, well, I personally prefer Microsoft browser By the way, I think you better ask this question in PHP forums Sorry I am not of more of help Quote Link to comment Share on other sites More sharing options...
haku Posted July 10, 2009 Share Posted July 10, 2009 Is anything appearing in the source code? Quote Link to comment Share on other sites More sharing options...
noober Posted July 23, 2009 Share Posted July 23, 2009 I took a very fast look. Try to echo the html and see if that helps. Quote Link to comment Share on other sites More sharing options...
noober Posted July 23, 2009 Share Posted July 23, 2009 Also, set a DOCTYPE in your html. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted July 24, 2009 Share Posted July 24, 2009 Also, set a DOCTYPE in your html. Yes, the doctype is crucial in having IE in standards complaint mode. Quote Link to comment Share on other sites More sharing options...
stockton Posted July 24, 2009 Author Share Posted July 24, 2009 The repair I effected was to place <!--[if IE]> <style type="text/css"> /* place css fixes for all versions of IE in this conditional comment */ .body { zoom: 1; padding-top: 15px; } /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */ </style> <![endif]--> immediately before the </head> Quote Link to comment Share on other sites More sharing options...
haku Posted July 24, 2009 Share Posted July 24, 2009 Ah yes, the infamous IE haslayout bug. Huge pain in the ass when it occurs. But you should still use a doctype. Quote Link to comment Share on other sites More sharing options...
stockton Posted July 24, 2009 Author Share Posted July 24, 2009 What doctype would you suggest? Quote Link to comment Share on other sites More sharing options...
haku Posted July 24, 2009 Share Posted July 24, 2009 HTML or XHTML doesn't really matter, but a strict doctype is better, regardless of which one you use. Quote Link to comment Share on other sites More sharing options...
stockton Posted July 24, 2009 Author Share Posted July 24, 2009 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.