No data being displayed on the page
Posted: Thu Apr 21, 2005 5:41 am
Hi,
With the following code .. nothing is being displayed to the browser .. not even the plain text:
Stumped ..
Thanks
With the following code .. nothing is being displayed to the browser .. not even the plain text:
Code: Select all
<?php
require '../db.php';
$sql = "SELECT * FROM table WHERE id ='1'";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
$id = $row['id'];
$name = $row['name'];
?>
<table width="51%" border="0" align="center" cellpadding="4" cellspacing="4">
<tr>
<td>
<?php
if ($_SESSION['user_level'] == 5) {
?>
<div align="center"><a href="../index.php?pages=page&id=<?php echo $row['id']; ?>">EDIT</a><br>
<?php
} else {
}
?>
</div>
</td>
</tr>
<tr>
<td>
<div align="center"><?php echo $row['name']; ?> Bla</div>
</td>
</tr>
</table>
<?php
}
?>Thanks