2
Contributors
3
Replies
9
Views
9 Years
Discussion Span
Last Post by Shanti C
0
if($_GET['stat']==1){$p=1;$m=5;}
else{$p=0;$m=6;}
$q="update yourtable set status='".$p."' where id='".$_GET['id']."' ";
mysql_query($q);

this is to display status:

if($row['status']==0)
			{
			$i="In-Active";
			$j=1;
			}
			else
			{
			$i="Active";
			$j=2;
			}

This is where your status link in your page:

<td  align="center"class="style13" ><a href="managepage.php?id=<?=$row['id']?>&stat=<? echo $j?>" > <? echo $i?></a> </td>
0

Thanks Shanti,

u r code worked perfectly

and i ask if i have any more queries

and
u ask if u have any issues on viruses or worms
not only u if ur friends also having any issues on viruses or worms please inform
i will try to solve the issue

Thank u
Rakesh Nagekar

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.