Jump to content

Table display in IE vs firefox


jeff5656

Recommended Posts

I don't know how to even debug this because it works in firefox but not IE.

I display a table and use PHP script to populate the table.  In explorer, the fellow value gets SKIPPED and then the next value (rcf_date) gets put into that td, so everything gets screwed up!

 

Looking at the code I can't figure out what it is about it that explorer doesn't like.  Why on earth would it skip the fellow field?  Here;s the php code that displays the table:

<?php require('secure.php'); 

include "dateheader.php"; 
include "connectdb.php"; ?>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Active consult patient list</title>
<link href="stylesheets/simple.css" rel="stylesheet" type="text/css">

</head>
<?php

$query = "SELECT id_incr, patient_name, mrn, location, fellow, rcf_date, admission, consult_reason, impression, recs, comments ".
	"FROM active_consults WHERE signoff_status = 'a' ".
	"ORDER BY patient_name";
$results = mysql_query ($query) or die (mysql_error());
$num_pts = mysql_num_rows ($results);

$consultheading =<<<EOD


<table class="tablemargin" bgcolor="#CCCCFF" width = "98%" border = "1" cellpadding = "2"
cellspacing = "2" align = "left">

<th> Name </th>
<th> MRN </th>
<th> Loc </th>
<th> Fellow </th>
<th> Date of Consult</th>
<th> Reason for Admssion </th>
<th> Reason for Consult  </th>
<th> Impression </th>
<th> Recs </th>
<th> Comments </th>
<th> Update patient </th>

</tr>
EOD;
echo $consultheading;

while ($row = mysql_fetch_assoc ($results)) {
?>
<tr>
  <td bgcolor="#FFFFFF" >
  <?php echo $row['patient_name'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['mrn'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['location'];?> </td>
    <td bgcolor="#FFFFFF" ">
  <?php echo $row['fellow'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['rcf_date'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['admission'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['consult_reason'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['impression'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['recs'];?> </td>
    <td bgcolor="#FFFFFF" >
  <?php echo $row['comments'];?> </td>
    <td bgcolor="#FFFFFF" align="center">
  <a href="editpatient.php?action=edit&id=<?php
 echo $row['id_incr']; ?>">[EDIT]</a> </td>
      </tr>
      <?php
     }
     ?>
     
<td bgcolor="#CCCCCC" colspan=11 align="left" class="fineprint"> Total active patients: 
<?php echo $num_pts; ?></td></tr>
<td></td>
<tr>
</tr>
<tr><td align="center"><a href="newpatient.php">[ADD PATIENT]</a></td>
<td align="center" COLSPAN=4><a href="displaysignoff.php">[DISPLAY SIGNED-OFF LIST]</a></td>
<td align="center" colspan=3><a href="export.php">[EXPORT ALL PATIENTS (EXCEL)]</a></td>

<td colspan=3 align="right"><a href="http://www.hfhpulm.com">[HFHPULM.COM]</a></td>

</tr></table> 

 

here is a screen shot of how it is screwed up in IE.  Note how date gets put in and the fellow feild is gone and then "reason for admission gets put under "date of consult".

[/img]

woops...let me go figure out how to upload an image...

Link to comment
https://forums.phpfreaks.com/topic/95377-table-display-in-ie-vs-firefox/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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