Question : Freezing top row in PHP

Hi I am new to php. I have a simple php file that displays data from mysql. Please see code below. I would like to freeze the top row (header row). How can I do that? Please advice. Thank You.

<?php
$con = mysql_connect("localhost","root","password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("mydb", $con);

$result = mysql_query("SELECT * FROM mytable");

echo "<table border='0'>
<tr>
<th>field1</th>
<th>field2</th>
<th>field3</th>
</tr>";

while($row = mysql_fetch_array($result))
  {
  echo "<tr>";
  echo "<td>" . $row['field1'] . "</td>";
  echo "<td>" . $row['field2'] . "</td>";
  echo "<td>" . $row['field3'] . "</td>";
  echo "</tr>";
  }
echo "</table>";
mysql_close($con);
?>

Answer : Freezing top row in PHP

Hi eseutil

yes i have seen this issue many times, you mention that it is successful on another machine, ask your self what is the difference between the two machines? What i suggest is to reconfigure the dl 380 to a similar config as the machine which eseutil works on. you mention that you have reduced the RAM, and have run exbpa. exbpa would have nothing to do with your eseutil issues as you can run eseutil without an exchange install. How many processor cores do you have, try and reduce the cores to 2 and see how you go. if it worked on another machine without copying the jcb.dll in every directory and registering dll's it will work on the dl380. Run eseutil as normal just change the number of cores, i think this will solve your issue.

Let me know how you go eseutil.


Random Solutions  
 
programming4us programming4us