problems with a loop
Posted: Sun Nov 20, 2005 7:48 pm
I’m trying to make a small program for a text based game. When you enter in a persons ID it will scan the page for his/her "commander" and then it should open that commanders link and do the same intill there is no commander.
Here is my current code:
My problem occurs when you enter a ID with a commander the program will get the commanders id but it wont put it back into the preg_match(). How would I go about doing this? My problem is resetting the variable $id.
Once I this working I will develop it better.
Thanks A lot.
-anthony
Here is my current code:
Code: Select all
edited...Once I this working I will develop it better.
Thanks A lot.
-anthony