[code]<?
if($row_Rs1!=”){
do{?>
<tr>
<td align=”left” class=”content”><? echo $row_Rs1[‘comname’];?></td>
<td class=”content”>
<?
$querycomprofile = “SELECT status FROM ykgoc_com_profile WHERE status=10 AND comid=”.$row_Rs1[‘comid’];
$findcp = mysql_query($querycomprofile, $pamconnection);
$rs_findcp = mysql_fetch_assoc($findcp);
if($rs_findcp[‘status’]==’10’){ echo “Have Profile”;}
else if($rs_findcp[‘status’]==’1′){ echo “Awaiting to publish”;}
else if($rs_findcp[‘status’]==’0′){ echo “Awaiting to approve”;}
else if($rs_findcp[‘status’]==”){ echo “<a href=’post_comprofile.php?id='”.$row_Rs1[“comid”].”‘>Set Profile</a>”;}
//else if($rs_findcp[‘status’]==”){ echo “<a href=’post_comprofile.php?id='”.$row_Rs1[‘comid’].”‘>Set Profile</a>”;} //’.$row_Rs1[‘comid’]
?>
</td>
<td class=”content”><a href=”detail_for_member.php?subscriber_id=<? echo $row_Rs1[‘comid’]; ?>” class=”style2″ target=”_blank”>Detail</a></td>
?>
</td> –>
</tr>
<tr><td colspan=”4″><hr><td></tr>
<? }while($row_Rs1=mysql_fetch_assoc($Rs1));
}?>
Can anybody tell me what’s wrong in this code? why I can’t get the value of $row_Rs1[‘comid’] in this:
echo “<a href=’post_comprofile.php?id='”.$row_Rs1[‘comid’].”‘>Set Profile</a>”;}
but can get the value in this:
<a href=”detail_for_member.php?subscriber_id=<? echo $row_Rs1[‘comid’]; ?>” class=”style2″ target=”_blank”>Detail</a>