Don't use SELECT *; select only the columns you need. When paired with the numeric fetch mode it's particularly problematic, as changing the table structure will wreck the result processing.
"text" is the default input type; there's no need to specify it.
A definition list seems more appropriate than a table here. If you were editing multiple entries, then the two dimensional structure of a table would make sense.
All elements should be closed. That means <input .../>, not <input ...>
Form inputs should have a corresponding <label> element.
There's no need to concat strings when echoing them; echo is variadic, echoing every argument. A heredoc would be more readable than using singly quoted strings.
PHP Code:
$memberQuery1->setFetchMode(PDO::FETCH_ASSOC);
foreach ($memberQuery1 as $row) {
echo <<<EOS
<dl>
<dt><label for="checkbox">???</label></dt>
<dd><input name="checkbox[]" type="checkbox" value="$row[id]" /></dd>
<dt><label for="id">ID</label></dt>
<dd><input class="id" name="id[]" size="1" value="$row[id]" readonly></dd>
<dt><label for="username">Username</label></dt>
<dd><input class="username" name="username[]" value="$row[username]"></dd>
<dt><label for="password">Password</label></dt>
<dd><input class="password" name="password[]" type="password" maxlength=40 value="$row[password]'"></dd>
<dt><label for="email">Email</label></dt>
<dd><input class="email" name="email[]" value="$row[email]"></dd>
<dt><label for="type">Type</label></dt>
<dd><input class="type" name="type[]" maxlength=1 value="$row[type]"></dd>
<dt><label for="purchased">Purchased</label></dt>
<dd><input class="purchased" name="purchased[]" value="$row[purchased]"></td>
<dt><label for="expiry">Expiry</label></dt>
<dd><input class="expiry" name="expiry[]" maxlength=19 value="$row[expiry]"></td>
</dl>
EOS;
}
...
Or output the table cells in a loop:
PHP Code:
<?php
$attrs = array(
'id' => ' size="1" readonly',
'username' => '',
'password' => ' type="password" maxlength="40"',
'email' => '',
'type' => ' maxlength="1"',
'purchased' => '',
'expiry' => ' maxlength="19"'
);
...
?>
<dl>
<?php foreach ($memberQuery1 as $row) { ?>
<dt><label for="checkbox">???</label></dt><input name="checkbox[]" type="checkbox" value="<?php echo $row['id']; ?>"></dd>
<?php foreach ($row as $key => $val) { ?>
<dt><label for="<?php echo $key ?>"><?php echo ucwords($key); ?></label></dt>
<dd><input class="<?php echo $key ?>" name="<?php echo $key; ?>[]" value="<?php echo $val; ?>" <?php echo $attrs[$key] ?></dd>
<?php } ?>
<?php } ?>
</dl>