poppertom69 Posted December 31, 2006 Share Posted December 31, 2006 [code]while($row1 = mysql_fetch_array($result1)){$playername = $row1['PlayerName']; if ($playername == $player_name) { include 'adddataupdate.php';;} }if ($player_name == (anything else apart from $playername) { include 'adddata2.php';;}[/code]Where i put [color=red](anything else apart from $playername)[/color] thats the code i need! this would make mylife so much easier if anyone could help.ThanksTom Link to comment https://forums.phpfreaks.com/topic/32333-need-help-in-if-statement/ Share on other sites More sharing options...
rasmuspalm Posted December 31, 2006 Share Posted December 31, 2006 if($playername != $playername){}There you go :)Edit: Or, since you're already testing whether $playername==$playername you could juse do an else:if($playername==$playername){ exec some stuff}else{exec some other stuff} Link to comment https://forums.phpfreaks.com/topic/32333-need-help-in-if-statement/#findComment-150141 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.