Jump to content

[SOLVED] Works in Firefox but not IE


stockton

Recommended Posts

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.

Link to comment
Share on other sites

  • 2 weeks later...

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.