Heres another problem someone might be able to help me with.......I have a roster page on a website that pulls info from the MySql database that I have. I then lists everything for each individual. considering I have more then 30 plus people and more coming in it is getting rather long. I put a little javascript in the bottom right so they can go to the top of the page. With a static html page you can have a link on it that goes directly to that name on the same page using something like this:
<a href="#this goes to the other link"></a>
.....meanwhile farther down the page is the other link
<a href="this is where it ends up farther down the page"></a>
Now here is my php script for listing every persons data over and over again...pretty simple..
<?php
mysql_connect('localhost', 'username', 'password');
mysql_select_db('table');
$res = mysql_query("SELECT * FROM roster ORDER BY Alias");
while($row = mysql_fetch_object($res)) {
?>
<table width="100%" cellborder="1px" bordercolr="black" border="1px">
<tr>
<td width="130">Alias:
</td>
<td>
<?php print $row->Alias; ?>
</td>
</tr>
<tr>
<td width="130">
Name:
</td>
<td>
<?php print $row->Name; ?>
</td>
</tr>
<tr>
<td width="130">Age:
</td>
<td>
<?php print $row->Age; ?>
</td>
</tr>
<tr>
<td width="130">Hometown:
</td>
<td>
<?php print $row->Hometown; ?>
</td>
</tr>
<tr>
<td width="130">E-mail:
</td>
<td>
<?php print $row->Email; ?>
</td>
</tr>
<tr>
<td width="130">Favorite Side:
</td>
<td>
<?php print $row->FavSide; ?>
</td>
</tr>
<tr>
<td width="130">Favorite Weapon:
</td>
<td>
<?php print $row->FavWeap; ?>
</td>
</tr>
<tr>
<td width="130">Favorite Quote:
</td>
<td>
<?php print $row->FavQuote; ?>
</td>
</tr>
<tr>
<td width="130" colspan="2"><br>
</td>
</tr>
</table>
<?php
}
?>
..but when I try to do another while or for each statement before the original WHILE statement that lists all information for each team member it always gives me multiple parse errors.....I dont know what I would have to do differently.....heck i dont know if this is supposed to be the "right" way or if multiple foreach statements would go over well....