PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
thats what it basicly looks like... the problem is is that it'll print out all the names. but it will only print out the items for the first character... and not the rest... if you need to see the fucntion just ask k.
What does function "items()" do as it does not exist in PHP. And also $this variable is reserved so you cannot use that variable (It's like $_SESSION etc).
<?php
class tester
{ var $this; }
$tester = new tester;
$tester->this = foo;
echo $tester->this; echo "\n";
?>
Now the ridiculous thing about this is that it echoes "foo". Now I figured it would be reserved within the context of the object, but obviously it's not. That's crazy! I feel the language should enforce certain practices and this is one of them.
please note that this function is in a totally other file... that gets included before loading the output...
also that first thing was an example and there really isnt a variable called $this in my code. see teh actual code looks like that its just had more tr's and td's, and all that is needed for you helping is those 2 columns
see $itm was set above it. item would be set to 'y' if the character met its conditions... well do you see the problem... since i reset $itm to the value of whatevers in the db... it doest equal 'y' anymore so no more out putting items after the first go around...
well teh answer is obivous change the var.. i did to $it2