Jump to content

Archived

This topic is now archived and is closed to further replies.

OldManRiver

Page Control

Recommended Posts

[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]

Share this post


Link to post
Share on other sites
Get rid of the exit; at the bottom of login.php

and where you have $html_str .= $_SESSION['display_block']; change it to:

$html_str .= {$_SESSION['display_block']};

Regards
Huggie

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
[quote author=HuggieBear link=topic=109870.msg443388#msg443388 date=1159486909]
Get rid of the exit; at the bottom of login.php

and where you have $html_str .= $_SESSION['display_block']; change it to:

$html_str .= {$_SESSION['display_block']};

Regards
Huggie
[/quote]

H,

Tried the var assignment with the "{}'s" and got errors!  Any other suggestions?

OMR

Share this post


Link to post
Share on other sites
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? ???  :-\ ;D

OMR

Share this post


Link to post
Share on other sites
[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]


Regards
Huggie

Share this post


Link to post
Share on other sites
Theres another bug in your site E-Worldpeace.com great ideas, keep it up:

Could not delete old search id sessions

DEBUG MODE

SQL Error : 1054 Unknown column 'search_time' in 'where clause'

DELETE FROM phpbb_search_results WHERE search_time < 1159518767

Line : 657
File : search.php

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
[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 sessions

DEBUG MODE

SQL Error : 1054 Unknown column 'search_time' in 'where clause'

DELETE FROM phpbb_search_results WHERE search_time < 1159518767

Line : 657
File : search.php
[/quote]

Did you like the default topics?  Would you have more to suggest?

OMR

Share this post


Link to post
Share on other sites
[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.

Regards
Huggie

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.