check
Posted: Thu Nov 18, 2004 3:09 pm
hello ive been looking at it for a wile now and i cant seem to figure out why this stript isnt working..maybe someone else can find my error or explain what im doing wrong
here is the first script which works:
http://24.190.94.106:800/stats/phpform.php~
it does a bunch of stuff and finally displays the final result as $stats
now if you take a look at:
http://24.190.94.106:800/stats/phpform2.php~
its mostley the same script except for the last few lines
what i planed on this doing in the new script is searching in the $stats string for 'For:' and taking the next item in the string and making it a variable (in this case '$player')...once this is done i can call the variable out later in a different place...right now i just put it at the bottom for ease
so my question is how come in the second script (phpform2.php) the $player variable is never displayed?
here is the first script which works:
http://24.190.94.106:800/stats/phpform.php~
it does a bunch of stuff and finally displays the final result as $stats
now if you take a look at:
http://24.190.94.106:800/stats/phpform2.php~
its mostley the same script except for the last few lines
Code: Select all
<?php
//Scans for For: and replaces the next line with $player variable
sscanf($stats, 'For: %s' , $player);
//displays results
echo "Player: $player<br>";
?>so my question is how come in the second script (phpform2.php) the $player variable is never displayed?