[eluser]learning_php[/eluser]
Hi,
Sorry forgot to add this. it'a the form to decide to approve members or not:
Code:
<?PHP
$sql="select * FROM pending_members";
$Q = $this->db->query($sql);
foreach ($Q->result() as $row):?>
<table border="0">
<tr>
<td width="25px" nowrap="ON"><?=$row->id?></td>
<td width="150px" nowrap="ON" ><?=$row->first_Name?></td>
<td width="150px" nowrap="ON"><?=$row->last_Name?></td>
<td width="150px" nowrap="ON"><?=$row->email?></td>
<td width="150px" nowrap="ON"><?=$row->username?></td>
<td width="80px" nowrap="ON"><?=$row->relationship?></td>
<?=form_open('homepage/updatemembers');?>
<td width="50px" nowrap="ON">
<select name="approved">
<option value=""></option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</td>
<input type="hidden" name="id" value="<?=$row->id?>"/>
<input type="hidden" name="email" value="<?=$row->email?>"/>
<td width="150px" ><input type="submit" value="update" /></td>
<?=form_close() ?>
</tr>
</table>
<?PHP endforeach;?>