activeradio
New Member
- Messages
- 18
- Reaction score
- 0
- Points
- 0
I basically have a table in my Admin CP, which is suppose to display the contents from all my columns, but of course it doesn't provide me with any errors. When I implement debugging, it says:
This is what I have in the first part of my code:
The table appears empty empty, and there is one row in the database.
Array ( [0] => 00000 )
This is what I have in the first part of my code:
Code:
$memberQuery1 = $db->prepare("SELECT * FROM members");
$memberQuery1->execute();
$result = $memberQuery1->setFetchMode(PDO::FETCH_NUM);
Code:
<?php
while($row = $memberQuery->fetch())
{
echo '
<tbody>
<tr>
<td><input name="checkbox[]" type="checkbox" value="'.$row[0].'"></td>
<td><input class="id" name="id[]" type="text" size="1" value="'.$row[0].'" readonly></td>
<td><input class="username" name="username[]" type="text" value="'.$row[1].'"></td>
<td><input class="password" name="password[]" type="password" maxlength=40 value="'.$row[2].'"></td>
<td><input class="email" name="email[]" type="text" value="'.$row[3].'"></td>
<td><input class="type" name="type[]" type="text" maxlength=1 value="'.$row[4].'"></td>
<td><input class="purchased" name="purchased[]" type="text" value="'.$row[5].'"></td>
<td><input class="expiry" name="expiry[]" type="text" maxlength=19 value="'.$row[6].'"></td>
</tr>
</tbody>';
}
//Debugging
print_r($row);
print_r($memberQuery1->errorInfo());
//End
?>
The table appears empty empty, and there is one row in the database.
Last edited: