First off, thanks for all your help on my last question. I’ve got my site up and functional, but have run into another problem. I’m running a while loop to show all the users of a certain userlevel on a page, sort of like a member list. However, I’m having 2 problems:
- First member the while loop comes across is not being shown.
- After the first loop, it puts the next table on a new line. I want to have a line of 4 users and then go to the next line.
How can I do that?
[php]
<? /** Girls.php */ include("session.php"); ?> <?php // Collects data from "users" table $data = mysql_query("SELECT * FROM users WHERE userlevel='6' ORDER BY status") or die(mysql_error()); // puts the "users" info into the $info array $info = mysql_fetch_array( $data ); ?>//echos girls username, picture, and status
<?php echo "";
while($info = mysql_fetch_array( $data ))
{
echo "
|
[/php]
Thanks in advance!