learning as i go, hehe i'm trying to make a member list where admin can approve or deny people that are not approved and then edit members already approved or promote them.
i've always wondered what those in the first case were for when i've seen them used. Which of the 3 would you advise to use
I tend to use single quotes or here document format as it means I don't have to escape quotes in HTML and with my syntax highlighter concenating the variables means I can see them easily. But it'll come down to what you find easiest to use: http://www.php.net/manual/en/language.types.string.php
<table cellspacing="5" cellpadding="5"><tr><td><div class="log"><u>Username</u></div></td><td><div class="log"><u>Main character name</u></div></td></tr></table>
<?php
// if you can avoid having to use ob_start() by putting session_start() at the
// very top of the script (perhaps in a config file which is called before
// anything else) it would be better IMHO
ob_start();
session_start();
//show members
// Personally I would specify all of the fields that I want to (or expect to)
// return from the table.
$query = "SELECT username, charname FROM users";
$result = mysql_query($query, $db_conn);
// you're looping through the whole result so you can use a while loop
while ($row = mysql_fetch_assoc($result))
{
echo "<table cellspacing="5" cellpadding="5"><tr><td><div class="log">$row[username]</div></td>";
echo "<td><div class="log">$row[charname]</div></td></tr></table>";
}
?>
About the ob_start, i was having header already sent problems before so i used ob_start as suggested in one of your sticky posts. I do have session start in a config file though the members.php is in admin directory and it didn't seem to be linking right, i'll try what you suggested.