Jump to content

[SOLVED] PHP Page Not Showing Updates From DB In IE6


kthxbai2u

Recommended Posts

Ok, i've been coding this site for a while, and it worked fine i swear in IE a while ago, now im noticing problems with IE and PNG files... And i thought IE's CSS problems were messing up my site. Turns out it isnt the CSS. I commented it out and still have the same problem.

 

My Site: http://kthx.zapto.org

 

The problem is, when i login as admin to my site (i coded), and i click to add a news, it sends the cmd to the MySQL server, and then redirects back to the new news page. The new news item is not displayed, even if i refresh. Usually, ill have to go and delete temp internet files and cookies etc. to get it to work. It works flawlessley in FireFox though, each update to the database appears on the news page fine.

 

Im not sure, i think it has to do with IE6 and session cookies or something, because the database server has to be returning the new data result (including the newly added news) and therefore it should be displayed on page reload... This problem is confusing the hell out of me, and im willing to allow someone admin access to the script to help me out with this problem. As well as ftp access to look at the code. Post here, and also PM me through the board.

I had this problem when I configured my site to use php 5 instead of php 4, php 4 I guess is better with mysql than php5, I would suggest that (if you can do it yourself) change back to using php 4, otherwise beg your host to switch back, or learn how to do it in php 5.

 

Your browser does not matter, since php is a server side language, what browser you are using is irrelivant.

Thats what i thought. I thought why would it be affected by what browser im using, but then i thought maybe IE wasnt passing the session variables right. I know its all executed on the server, im a php programmer (new one :P)

 

Anyways, I am using Xampp, because it was quick and easy.  I do recall seeing that it uses php5, im going to try to get apache, php4 and mysql running. What do you suggest is the best version of MySQL to work with PHP 4 ? I hope this fixes my site heh...

 

<edit>Well, xampp has a batch file to switch it between php4 and php5 :) ill post back in 5-10 mins if it fixes my problem :D</edit>

Well, it didnt work. Im running php 4 now and i still have the same problem. Still works flawlessly in firefox :) i need it to work in IE tho :-/ thats what most noobies use :(

 

<edit>Heres a link to my index.phps file :)http://kthx.zapto.org/index.phps If you want .phps for any of the includes lemme know</edit>

No one better copy my site :P steal snippets is ok.

Sorry  I would have edited my previous post but i got logged out and then i logged back in now i cant modify the previous post.

 

Anyways, I've backed up my database, and added a testuser account with admin privelages, so whoever wants can try to update the news to see my problem. Then do it in FF and it will work fine. Heres the login info:

 

User: testuser

Pass: test

http://kthx.zapto.org/

 

Please, i need someone to help me lol. This is under a tight timeline right now and im falling behind :( Everything was going good till i noticed i had this problem :(

Try now, sorry I didnt get the validation in the add user section of the admin menu, and the login form minimum length was set to 5. I changed it to 4 though, it should let you login now :)

 

and another thing, if you type and invalid name and password then it displays the message twice on the error page. you should look into that.

 

Yeah, i actually put in 2 more checks to see if the password is right (for other reasons), but i left an else on one of them and made it display the error again. I meant to comment that out (or remove it) but im aware of it and its fixed now thanks :P Thats a result of copy/pasting my own code haha

I SOLVED IT MYSELF!! w000t!

 

Ok, In the top of the page, I had the following code:

session_cache_limiter('private');
session_cache_expire(30);
if (session_id() == "") session_start();

 

I did this for some reason, had something to do with the login but i forget now. Anyways, i changed it to this:

session_cache_limiter(no-cache');
session_cache_expire(30);
if (session_id() == "") session_start();

 

and now when i update news in IE it works :D Big thanks to anyone who was going to help me :D

 

 

Archived

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

×
×
  • Create New...

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.