OldManRiver Posted September 28, 2006 Author Share Posted September 28, 2006 [quote author=HuggieBear link=topic=109870.msg443374#msg443374 date=1159485582]Your code looks ok, if you added session_start() to the top of login.php you can remove it. I know I said the top of everypage, but as your including it into cleanpcr.php, there's no need to have it twice.Huggie[/quote]H,Obviously I can't write any output now, so if I figure this out, I think I'm good.What do you think is my problem now? I even tried putting all the HTML into a var so I could use an echo, as you suggested, but now have blank screen!OMR[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100562 Share on other sites More sharing options...
HuggieBear Posted September 28, 2006 Share Posted September 28, 2006 Get rid of the exit; at the bottom of login.phpand where you have $html_str .= $_SESSION['display_block']; change it to:$html_str .= {$_SESSION['display_block']};RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100567 Share on other sites More sharing options...
OldManRiver Posted September 28, 2006 Author Share Posted September 28, 2006 H,Sorry, was coding like mad and found the "exit" so knocked it.However went back to non-echo codes so here is where I'm at:Was having problems with the "header" and realized it can not be called on the "require" so moved it.That stopped the endless loop. Took it out but that doesn't work. Right now the code is working, sort of, because the new values for $_SESSION['display_block'] don't get set or displayed.Just put some [b]echo[/b] traps in the login.php file to show it is processing OK! The incorrect login has a problem, but everything else works! (Edit)Even got that fixed now!OMR[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100577 Share on other sites More sharing options...
OldManRiver Posted September 29, 2006 Author Share Posted September 29, 2006 [quote author=HuggieBear link=topic=109870.msg443388#msg443388 date=1159486909]Get rid of the exit; at the bottom of login.phpand where you have $html_str .= $_SESSION['display_block']; change it to:$html_str .= {$_SESSION['display_block']};RegardsHuggie[/quote]H,Tried the var assignment with the "{}'s" and got errors! Any other suggestions?OMR Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100589 Share on other sites More sharing options...
OldManRiver Posted September 29, 2006 Author Share Posted September 29, 2006 All,Is my problem that I'm also using the [b]require[/b] to the same processing file? ??? Should I use another file for the [b]require[/b] to preload my page? ??? :-\ ;DOMR Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100605 Share on other sites More sharing options...
HuggieBear Posted September 29, 2006 Share Posted September 29, 2006 [quote author=OldManRiver]Tried the var assignment with the "{}'s" and got errors! Any other suggestions?[/quote]I think I missed the quotes off that one... try:[code=php:0]$html_str .= "{$_SESSION['display_block']}";[/code]RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100722 Share on other sites More sharing options...
scottybwoy Posted September 29, 2006 Share Posted September 29, 2006 Theres another bug in your site E-Worldpeace.com great ideas, keep it up:Could not delete old search id sessionsDEBUG MODESQL Error : 1054 Unknown column 'search_time' in 'where clause'DELETE FROM phpbb_search_results WHERE search_time < 1159518767Line : 657File : search.php Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100747 Share on other sites More sharing options...
OldManRiver Posted September 29, 2006 Author Share Posted September 29, 2006 Huggie,Got it fixed late last night with this code in each file:[code] if (!isset($sess_id)) { session_start(); $started = true; $sess_id = session_id(); }[/code]Added the processing to logout, etc., since. Still working on some of the DB backend, like "lastlogin", etc.Now trying to get it to transfer to the secondary pages. Not having much luck with that.Do I need to add a "globals" for the vars to pass?OMR Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100997 Share on other sites More sharing options...
OldManRiver Posted September 29, 2006 Author Share Posted September 29, 2006 [quote author=scottybwoy link=topic=109870.msg443574#msg443574 date=1159522535]Theres another bug in your site E-Worldpeace.com great ideas, keep it up:Could not delete old search id sessionsDEBUG MODESQL Error : 1054 Unknown column 'search_time' in 'where clause'DELETE FROM phpbb_search_results WHERE search_time < 1159518767Line : 657File : search.php[/quote]Did you like the default topics? Would you have more to suggest?OMR Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-100998 Share on other sites More sharing options...
HuggieBear Posted September 29, 2006 Share Posted September 29, 2006 [quote author=OldManRiver link=topic=109870.msg443834#msg443834 date=1159551629]Now trying to get it to transfer to the secondary pages. Not having much luck with that. Do I need to add a "globals" for the vars to pass?[/quote]No, there's no need for 'globals' you should just be able to use any of those $_SESSION variables on any of your pages where you've started the session.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-101014 Share on other sites More sharing options...
OldManRiver Posted September 29, 2006 Author Share Posted September 29, 2006 H,Great, Godaddy took down the Blog, so opened a ticket for restore and they axed the main page.Can't proceed, till they fix their #$@#$%.Right hand never knows what the left is doing, must be the tech support idiots in India! Can't read simple instructions.OMR Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-101020 Share on other sites More sharing options...
OldManRiver Posted October 3, 2006 Author Share Posted October 3, 2006 All,Site backup now and running, with changes working, but still working the secondary pages.OMR Quote Link to comment https://forums.phpfreaks.com/topic/22409-page-control/page/2/#findComment-103453 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.