<!-- start page -->
<div id="page">

	<!-- start content -->
	<div id="content">
		<div class="post">
			<div class="title">
				<h2><a href="#"></a><a href="#">Invite Friends</a> 
		
				</h2>
				<p>Invited Friends List <br /> <font color="#FF0000"><?=$msg?></font> </p>
				<form action="" method="post">
				<table align="center" width="90%">
				<? 
				$xp = NULL;
				$id = $this->session->userdata('id');
				//echo "select * from inv as I, users as U where U.id = '$id' and U.id = I.invBy ";
				$sql = mysql_query("select * from inv as I, users as U where U.id = '$id' and U.id = I.invBy") or die(mysql_error());
				while($row = mysql_fetch_array($sql))
					{
				?>					
				<tr>
					<td align="left"><?=$row['fname']?> </td>
					<td align="left"><?=$row['mobNo']?> </td>
					<td align="left"><? if($row['joingStatus']) { echo "Joined"; } else {?> Pending [<a href="<?=base_url()?>welcome/resend/<?=$row['invID']?>">Resend</a>] <? }?> </td>
				</tr>
				
				<?		
					}
				?>
				
				</td></tr>
				
				</table>
				</form>
		  </div>


	  </div>
  </div>
	<!-- end content -->
	<br style="clear: both;" />
</div>
<!-- end page -->