[PHP] How to path global object
Hi, I have a question of how to path global object's values. Below are some simplified codes. It has 4 pieces: 1. tsstart.php: -- this is the start point to be browsed 2. tsdata.php: -- to get data, here I set it as a 2-d array and assign values to it to simplify the code 3. tsshow.php: -- display the values of $obj: "; ?> First Row: Second Row: Next 4. tsnext.php: -- to display the next 2-d array element's value: "; include "tsshow.php"; ?> Now, when I browse tsstart.php, it displays: result-set index: 0 First Row: 0 Second Row: 2 and the link "Next" However, when I click the link "Next", it displays: new ind: 1 result-set index: 1 First Row: Second Row: no values are displayed. Apparently, $obj is not pathed to tsnext.php and tsshow.php (the second time), but $ind is. What is wrong in the above codes? Can somebody help me? I greatly appreciate all help! Hongwei Li -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem in my php code
Hi, I have a problem in my php code. I simplify the code as the 4 pieces below and hope somebody can help me to fix the problem. 1. tsstart.php: -- this is the start point to be browsed 2. tsdata.php: -- to get data, here I set it as a 2-d array and assign values to it to simplify the code 3. tsshow.php: -- display the values of $obj: "; ?> First Row: Second Row: Next 4. tsnext.php: -- to display the next 2-d array element's value: "; include "tsshow.php"; ?> Now, when I browse tsstart.php, it displays: result-set index: 0 First Row: 0 Second Row: 2 and the link "Next" However, when I click the link "Next", it displays: new ind: 1 result-set index: 1 First Row: Second Row: no values are displayed. Apparently, $obj is not passed to tsnext.php and tsshow.php (the second time), but $ind is. What is wrong in the above codes? Can somebody help me? I greatly appreciate all help! Hongwei Li -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] About problem in my php code
Thanks for all help from Philp and Richard. I learned the session issue and fixed the problem. For some reason, I could not receive any email from this list. I checked the message only from the list's web site, but did not receive any (my post, reply, or any other posts) in my mail. I did receive the "subscribe confirmation message" though. I have to check the web site to see posts, but could not "reply" from there. I do have spamblock software, but I don't see any mails from this list in the blocked-mail folder. Can the manager of this list give me some help? Thanks! Hongwei Li -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php