Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with display results in table

Status
Not open for further replies.

crisco

Technical User
Jan 29, 2001
9
US
I am new and learning php by changing examples in books.
I searched the forums for an answer to my problem but could not find one.

I am trying to display the results of a query in a table I have...

$display_blocktable .= "
<table>
<tr>
<th>Time</th><th>Address</th><th>Subdivision/Area</th><th>Company</th><th>Contact</th><th>Phone</th>
</tr>
<tr>
<td>$time</td><td>$address</td><td>$subdivision_area</td><td>$company</td><td>$contact</td><td>$phone</td>
</tr>
</table>
&quot;;

It works but it displays each record in it's own table with a heading. I want just one heading and the results in rows. Can anyone help??

Thank You.

Crisco

 
<table>
<tr>
<th>Time</th><th>Address</th><th>Subdivision/Area</th><th>Company</th><th>Contact</th><th>Phone</th>
</tr>
<?
$display_blocktable .= &quot;
<tr>
<td>$time</td><td>$address</td><td>$subdivision_area</td><td>$company</td><td>$contact</td><td>$phone</td>
</tr>
&quot;;
//-------- Begin Circle with the results of a query
//...
//-------- End Circle with the results of a query
?>
</table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top