richone Posted March 8, 2007 Share Posted March 8, 2007 hi can anyone help me with this command below as you can see it has a M in it M= MEMBER and P= PENDING i need this command to includ the M and the P <? if($mtype=='M') { ?> ta richard Link to comment https://forums.phpfreaks.com/topic/41744-can-you-help-me-with-this-command/ Share on other sites More sharing options...
HaLo2FrEeEk Posted March 8, 2007 Share Posted March 8, 2007 Can you explain in clearer detail what you mean? Link to comment https://forums.phpfreaks.com/topic/41744-can-you-help-me-with-this-command/#findComment-202375 Share on other sites More sharing options...
richone Posted March 8, 2007 Author Share Posted March 8, 2007 hi HaLo2FrEeEk <? if($mtype=='M') { ?> this is the text that it is in but it only has the M in so it only loads the part below for a member only but need it to do it for the member and the pending member as well so it needs to have the M and the P in the code <br> <div align="left"></div> <? if($mtype=='M') { ?> <TABLE align="left" cellPadding=2 cellSpacing=0 class="T small"> <TBODY> <TR class="gray"> <TD align=middle colSpan=2><span class="style1">My Profile </span></TD> </TR> <TR class="gray"> <TD width="10" align=right><img src="images/arrow.gif" width="12" height="18"></TD> <TD width="136"> <a href="gprofile.php?<? print "p=$user&mid=$memid&s=$pass";?>"> <div class="gray"> <div align="left">general</div> </div> </a></TD> </TR> <TR class="gray"> <TD align=right><img src="images/arrow.gif" width="12" height="18"></TD> <TD ><a href="pprofile.php?<? print "p=$user&mid=$memid&s=$pass";?>"> <div class="gray"> <div align="left">personal</div> </div> </a></TD> </TR> <TR class="gray"> <TD align=right><img src="images/arrow.gif" width="12" height="18"></TD> <TD><a href="photo.php?<? print "p=$user&mid=$memid&s=$pass";?>"> <div class="gray"> <div align="left">photo</div> </div> </a></TD> </TR> ta richard Link to comment https://forums.phpfreaks.com/topic/41744-can-you-help-me-with-this-command/#findComment-202381 Share on other sites More sharing options...
paul2463 Posted March 8, 2007 Share Posted March 8, 2007 is this what you want? if(($mtype=='M')||($mtype=='P')) // if $mtype is either a M OR a P, Link to comment https://forums.phpfreaks.com/topic/41744-can-you-help-me-with-this-command/#findComment-202420 Share on other sites More sharing options...
richone Posted March 8, 2007 Author Share Posted March 8, 2007 hi no it did not work for me but at richard Link to comment https://forums.phpfreaks.com/topic/41744-can-you-help-me-with-this-command/#findComment-202792 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.