Last time i posted here i wasnt clear enough or supplied enough info, so this time around i will supply more info hopefully enough!
Firstly the problem:
Simple, my table isn't working as it should, I've tried to compare it to others on other pages but clueless as to why it doesn't work, it displays this:
The table should be 4 rows with Owner and Name in there already, all the views should be below one another on another row, here is the coding:
$sql3 = "SELECT * FROM phonecompany ORDER by id";
$result3 = mysql_query($sql3);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet href=includes/in.css type=text/css>
</head>
<body><br>
<td bgcolor="#444444"><form name="form1" method="post" action="">
<br>
<table width="700" border="0" align="center" cellpadding="3" cellspacing="1" class="data_table">
</tr>
<tr align="left" class="head_cell">
<th class="header" colspan="6">• Phone Companies</th>
</tr>
<tr bgcolor="#555555">
<td height="8" colspan="6" valign="top"><img src="images/phone.png" name="img" width="700" height="100" border="0" id="img"></td>
</tr>
<tr align="left" class="head_cell">
<th class="header" width="25%">Owner</th>
<th class="header" width="65%">Name</th>
<th class="header" width="10%"> </th>
</tr>
<?
while($phonecompany2 = mysql_fetch_object($result3)){
?>
<tr align="left" bgcolor="#555555">
<td bgcolor="#555555" align="left"><?php echo "$phonecompany2->Owner"; ?></td>
<td bgcolor="#555555" align="left"><?php echo "$phonecompany2->Name"; ?></td>
<td bgcolor="#555555" align="left"><a href="?view=<?php echo "$phonecompany2->id"; ?>">View</a></td>
</tr>
</table>
<?
}
?>
<p>
</p>
</div>
</div>
</form>
</body>
</html>
And here is how the database looks:
If someone could fix my code for me i would greatly appriciate it