mike_abc Posted June 7, 2012 Share Posted June 7, 2012 Hi, I try to build a dynamic website, where, at some point, the same page needs to call itself, changing one of its parameters. The call happens when you press an image from a sequence of images in a row, then the page calls itself with the index of the image pressed. The first page has the image index = 0, then you should be able to press any image with the same or a different index (1, 2, 3, etc.) - they are all there in the row. I get this error: Notice: Undefined variable: link in .../htdocs/source/04_plant_show.php on line 126 Fatal error: Call to a member function query() on a non-object in .../htdocs/source/04_plant_show.php on line 126 I checked the link and it is ok, syntax-wise. What can I do to call this page recursively ? Mike Quote Link to comment https://forums.phpfreaks.com/topic/263805-recursive-page-call-doesnt-work/ Share on other sites More sharing options...
mike_abc Posted June 7, 2012 Author Share Posted June 7, 2012 The "link" is a variable I use to connect to the DB. It's my mistake: when I recursively call the page, I jump over the part where the link is "created". Nothing very special - some steps are simply missing in my code because of the "jumping". Mike Quote Link to comment https://forums.phpfreaks.com/topic/263805-recursive-page-call-doesnt-work/#findComment-1351876 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.