Problems with detailed linkpage
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
warriors2003
- Forum Commoner
- Posts: 38
- Joined: Wed Mar 24, 2004 7:24 pm
One quick question ,,,having problems adjusting the table,,,I haven;t used the result query ever I am usually using select,,,,,and I think its throwing me off,..This is what I have for the table...
<tr>
<td align=center valign=top><B>AB</B></td>
<td align=center valign=top><B>hits</B></td>
<td align=center valign=top><B>hr</B></td>
</tr>
<?
// Display requested entries
while ( $row = mysql_fetch_array($result) ) {
echo("<tr>
<td align=center valign=top>
". $row["ab"] . "</td>
<td align=center valign=top>
" . $row["h"] . "</td>
<td align=center valign=top>
" . $row["hr"] . "</td></tr>");
}
-----------------------------
This displays the ab h r right after each other,in one line,,,,,,how would i set it up,,if i wanted the H AB R on the top with the detailed info in rows right under it.
like
AB H R
4 2 1 game 1
3 3 1 game 2
I'm pretty good with tables, but I think the result thing is messing me up....
Thanks again for all your help!!!!
<tr>
<td align=center valign=top><B>AB</B></td>
<td align=center valign=top><B>hits</B></td>
<td align=center valign=top><B>hr</B></td>
</tr>
<?
// Display requested entries
while ( $row = mysql_fetch_array($result) ) {
echo("<tr>
<td align=center valign=top>
". $row["ab"] . "</td>
<td align=center valign=top>
" . $row["h"] . "</td>
<td align=center valign=top>
" . $row["hr"] . "</td></tr>");
}
-----------------------------
This displays the ab h r right after each other,in one line,,,,,,how would i set it up,,if i wanted the H AB R on the top with the detailed info in rows right under it.
like
AB H R
4 2 1 game 1
3 3 1 game 2
I'm pretty good with tables, but I think the result thing is messing me up....
Thanks again for all your help!!!!