hchsk Posted May 4, 2009 Share Posted May 4, 2009 i have a .php webpage. in it i include the script [code<?php include("scripts/ranketc.php"); include("scripts/inactivity.php"); ?>[/code] which includes the function inactive($team); i insert it the first time, <?php $inactive = inactive('team1'); print $inactive[display]; ?> and it works! but the second time i insert it, <?php $inactive = inactive('team2'); print $inactive[display]; ?> it fails, and does whoknowswhat to the page, completely ruining it. i have tested it with the team2 parameter, and know that that is not the problem. the function is returning the correct value, which is a string. i have tried modifying my include to <?php $inactive2 = inactive('team2'); print $inactive2[display]; ?> but still to no avail any help would be gratefully accepted Link to comment https://forums.phpfreaks.com/topic/156738-solved-inserting-values/ Share on other sites More sharing options...
mapleleaf Posted May 4, 2009 Share Posted May 4, 2009 you may need to show your inactive() function Link to comment https://forums.phpfreaks.com/topic/156738-solved-inserting-values/#findComment-825354 Share on other sites More sharing options...
Ken2k7 Posted May 4, 2009 Share Posted May 4, 2009 Can you post your entire code (within reason) instead of line snippets? Link to comment https://forums.phpfreaks.com/topic/156738-solved-inserting-values/#findComment-825358 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.